About

Metadata

  • Last updated , by qfpl
  • License BSD-3-Clause
  • Categories FRP, Web Development
  • Maintained by: dave.laing.80@gmail.com

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.6.4
  2. 8.4.3
  3. 8.2.2
  4. 8.0.2

Readme

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