diff options
author | stuebinm | 2022-10-11 13:39:16 +0200 |
---|---|---|
committer | stuebinm | 2022-10-11 13:39:16 +0200 |
commit | 4caded904c54d1cd85bf54239517e93650a404f5 (patch) | |
tree | ce150d3588aa766c12ee6bb3e3ed3aea73615d43 /server/HtmlOrphans.hs | |
parent | e4b0ae395f3207f4bbaebbf42a3d3a28a516489d (diff) |
use template haskell aeson, not generics
this has been bothering me for MONTHS, and it compiles faster now. also fixed some warnings
Diffstat (limited to 'server/HtmlOrphans.hs')
-rw-r--r-- | server/HtmlOrphans.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/HtmlOrphans.hs b/server/HtmlOrphans.hs index bf06d4c..594d55f 100644 --- a/server/HtmlOrphans.hs +++ b/server/HtmlOrphans.hs @@ -26,7 +26,7 @@ import Handlers (AdminOverview (..)) import Lucid (HtmlT, ToHtml) import Lucid.Base (ToHtml (toHtml)) import Lucid.Html5 (a_, body_, button_, class_, code_, disabled_, - div_, em_, h1_, h2_, h3_, h4_, h5_, head_, + div_, em_, h1_, h2_, h3_, h4_, head_, href_, html_, id_, li_, link_, main_, onclick_, p_, rel_, script_, span_, src_, title_, type_, ul_) @@ -114,9 +114,9 @@ instance ToHtml AdminOverview where if null jobs then em_ "(nothing yet)" else flip M.foldMapWithKey jobs $ \sha1 (ref, status, _lastvalid) -> li_ $ do case status of - Pending _ -> badge Info "pending" - (Linted res rev _) -> toHtml $ maximumLintLevel res - (Failed _) -> badge Error "system error" + Pending _ -> badge Info "pending" + (Linted res _ _) -> toHtml $ maximumLintLevel res + (Failed _) -> badge Error "system error" " "; a_ [href_ ("/status/"+|orgSlug org|+"/"+|prettySha sha1|+"/")] $ do mono $ toHtml $ reporef ref; " on "; mono $ toHtml $ repourl ref |