1 {-# LANGUAGE NoMonomorphismRestriction #-}
2 {-# OPTIONS_GHC -Wno-missing-signatures #-}
4 module Examples.Ex01 where
6 import Control.Monad (Monad (..))
7 import Data.Text (Text)
10 -- | Polymorphic expression describing the website,
11 -- to be instantiated to the various interpreters.
12 -- NoMonomorphismRestriction is used to avoid specifying manually
13 -- the inferred symantic classes.
16 <.> response @Text @'[PlainText]
21 ( contentEndpoint (return "INDEX")
25 -- c0 = compile CompilerEnv{} router content
26 -- m0 = manifest router
28 address_Index, address_About :: Address
29 (address_Index :!: address_About) = address router