essence-of-live-coding-warp-0.2.5: General purpose live coding framework
Safe HaskellNone
LanguageHaskell2010

LiveCoding.Warp

Synopsis

Documentation

runWarpC :: Port -> Cell IO (a, Request) (b, Response) -> Cell (HandlingStateT IO) a (Maybe b) Source #

Run a Cell as a WARP application.

  1. Starts a WARP application on the given port in a background thread
  2. Waits until the next request arrives, outputting Nothing in the meantime
  3. Supplies the cell with the input and the current request
  4. Serve the response and return the output