Skip to content

Commit

Permalink
Also foldMap again
Browse files Browse the repository at this point in the history
  • Loading branch information
The1Penguin committed Oct 27, 2024
1 parent c253d86 commit db15825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ renderRest Restaurant {..} = box_ $ do
Left _ -> li_ "Something went wrong, " <> a_
[href_ "https://github.com/dtekcth/mat-chalmers/issues/new", class_ "text-orange-500 visited:text-orange-800"]
"please file an issue."
Right menus -> mconcat (map renderMenu menus)
Right menus -> foldMap renderMenu menus

renderMenu :: Menu -> Html ()
renderMenu (Menu lunch spec) = li_ [class_ "text-lg"]
Expand Down

0 comments on commit db15825

Please sign in to comment.