essence-of-live-coding-warp-0.2.1: General purpose live coding framework

Safe HaskellNone




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

Run a Cell as a WARP application.

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

Keep in mind that the resulting cell is blocking. For a non-blocking cell, use NonBlocking.