Mig
The Mig is a library to build lightweight composable servers
hello world
code:hs
module Main where
import Mig
import Data.Text (Text)
main :: IO ()
main = runServer 8080 server
server :: Server IO
server =
"api" /. "v1" /. "hello" /. hello
hello :: Get Json IO Text
hello = pure "Hello World"