@hackage reflex-backend-wai0.1.0.0
Reflex interface to `wai`
Categories
License
BSD-3-Clause
Maintainer
dave.laing.80@gmail.com
Links
Versions
- 0.1.0.0 Mon, 8 Apr 2019
Reflex interface to wai
.
A minimal example:
{-# LANGUAGE OverloadedStrings #-} module Main where import Network.Wai (responseLBS) import Network.HTTP.Types.Status (status200) import Reflex.Backend.Warp (runAppForever) main :: IO () main = runAppForever 8080 $ \eReq -> do let eRes = responseLBS status200 [] "Hi" <$ eReq pure eRes