Custom monad

This commit is contained in:
2018-08-02 22:32:23 +03:00
parent 1e088afce4
commit 6d08e9dad4
5 changed files with 23 additions and 7 deletions

View File

@ -17,6 +17,7 @@ import Servant
import Servant.HTML.Lucid (HTML)
import Lucid (HtmlT, ToHtml(..))
import qualified Lucid.Html5 as H
import Types
data Index = Index
@ -39,5 +40,5 @@ instance ToHtml Index where
type API = Get '[HTML] Index
handler :: ServerT API Handler
handler :: ServerT API AppM
handler = return Index