stackage-server/Handler/CompressorStatus.hs
2014-11-11 08:52:24 +02:00

15 lines
372 B
Haskell

module Handler.CompressorStatus where
import Import
getCompressorStatusR :: Handler Html
getCompressorStatusR = do
status <- getYesod >>= readIORef . compressorStatus
defaultLayout $ do
setTitle "Compressor thread status"
[whamlet|
<div .container>
<h1>Compressor thread status
<p>#{status}
|]