In the following function definition:
app :: Application
app _ respond = do
putStrLn "I've done some IO here"
respond $ responseLBS
status200
[("Content-Type", "text/plain")]
"Hello, Web!"
Hello the app function doesn't seem to take arguments. Why in the above example there are two arguments?
Applicationis a type synonym forRequest -> (Response -> IO ResponseReceived) -> IO ResponseReceived: hackage.haskell.org/package/wai-3.2.2.1/docs/…