Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-thinnes authored and BinderDavid committed Jun 20, 2024
1 parent 350084c commit 1965425
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions message-index/site.hs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ main = hakyll $ do
other -> error "is not an example"
pure $
JSON.object
[ "name" .= name
, "route" .= route
, "metadata" .= meta
[ "name" .= name,
"route" .= route,
"metadata" .= meta
]

let errorItemToJSON :: Item String -> Compiler JSON.Value
Expand All @@ -173,17 +173,16 @@ main = hakyll $ do
examples <- traverse exampleItemToJSON exampleItems
pure $
JSON.object
[ "code" .= code
, "route" .= route
, "metadata" .= meta
, "examples" .= examples
[ "code" .= code,
"route" .= route,
"metadata" .= meta,
"examples" .= examples
]

errorItems <- loadAll $ "messages/*/index.md" .&&. hasNoVersion
encoded <- traverse errorItemToJSON errorItems
makeItem $ JSON.encode encoded


--------------------------------------------------------------------------------

-- | The file extensions to be shown in example lists
Expand Down

0 comments on commit 1965425

Please sign in to comment.