Safe Haskell | None |
---|---|
Language | GHC2021 |
Documentation
type Page (views :: [Type]) = View (Root views) () Source #
Conceptually, an application is dividied up into multiple Pages. Each page module should have a function that returns a Page
. The Page
itself is a View
with a type-level list of HyperView
s used on the page.
page ::Eff
es (Page
[Message, Count]) page = do pure $ do row id $ dohyper
Message $ messageView "Hello"hyper
Count $ countView 0