-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
It seems that second call to readBuffer
hangs forever. Minimal example:
main :: forall e. Eff (avar ∷ AVAR, buffer ∷ BUFFER, console :: CONSOLE, http :: HTTP | e) Unit
main =
let app = writeStatus statusOK
:*> (readBody :: Middleware _ _ _ String)
:*> (readBody :: Middleware _ _ _ String)
:*> closeHeaders
:*> respond "Hello, Hyper!"
in runServer defaultOptionsWithLogging {} app
I'm not sure, but maybe body state also should be tracked in types... What do you think?
Metadata
Metadata
Assignees
Labels
No labels