reflex-backend-wai

Reflex interface to `wai`

Latest on Hackage:0.1.0.0@rev:1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Dave Laing
Maintained by [email protected]

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