f-o-a-m / kepler

A Haskell framework that facilitates writing ABCI applications
https://kepler.dev
Apache License 2.0
34 stars 9 forks source link

thoughts? #26

Closed safareli closed 5 years ago

safareli commented 5 years ago

I started this off the err branch, and target is that same branch to make diff nicer:

This snippet demonstrates how things play together:

app :: App (Free DSL)
interpret :: Config -> Free DSL ~> IO
mkConfig :: IO Config

main = do
  conf <- mkConfig appData
  serveApp $ transformApp (interpret conf) app
safareli commented 5 years ago

This is good point https://github.com/f-o-a-m/hs-abci-server/pull/24#discussion_r306934838 so removed the AppData all together as for testing one can just use runApp

martyall commented 5 years ago

(thoughts given on rocket chat)

safareli commented 5 years ago

28