name: reflex-backend-wai
version: 0.1.0.0
synopsis: Reflex interface to `wai`
description:
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
license: BSD3
license-file: LICENSE
author: Dave Laing
maintainer: dave.laing.80@gmail.com
-- copyright:
category: FRP, Web
build-type: Simple
extra-source-files: ChangeLog.md
cabal-version: >=1.10
tested-with: GHC==8.0.2
, GHC==8.2.2
, GHC==8.4.3
, GHC==8.6.4
library
exposed-modules: Reflex.Backend.Wai
, Reflex.Backend.Warp
build-depends: base >=4.9 && < 4.13
, containers >= 0.5 && < 0.7
, mtl >= 2.2.1 && < 2.3
, reflex >= 0.5 && < 0.6
, reflex-basic-host >= 0.1 && < 0.2
, stm >= 2.4.4 && < 2.6
, wai >= 3.2.1 && < 3.3
, warp >= 3.2.13 && < 3.3
hs-source-dirs: src
ghc-options: -Wall
default-language: Haskell2010
executable example
main-is: Main.hs
build-depends: base >=4.9 && < 4.13
, http-types >= 0.9.1 && < 0.13
, reflex >= 0.5 && < 0.6
, wai >= 3.2.1 && < 3.3
, reflex-backend-wai
hs-source-dirs: exe
ghc-options: -Wall
default-language: Haskell2010