Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
interactWeb :: (FromText a, ToText b) => (a -> Either String b) -> IO () Source
Tranform a function into a webapp.
The inputs and outputs must implement FromText
and ToText
, respectively.
You can query it via a browser at http://localhost:8080 or by using curl/httpie
http :8080 input="<your input string>"
curl localhost:8080 -d input="<your input string>"