Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtanguy/quickwebapp
Quick-and-dirty api for haskell function, à la interact
https://github.com/jtanguy/quickwebapp
Last synced: 23 days ago
JSON representation
Quick-and-dirty api for haskell function, à la interact
- Host: GitHub
- URL: https://github.com/jtanguy/quickwebapp
- Owner: jtanguy
- License: gpl-3.0
- Created: 2014-06-09T15:35:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-04T16:08:21.000Z (over 9 years ago)
- Last Synced: 2024-11-16T02:42:02.607Z (about 1 month ago)
- Language: Haskell
- Homepage:
- Size: 188 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog
- License: LICENSE
Awesome Lists containing this project
README
quickwebapp
===========
A quick-and-dirty api generator, for any function `a -> Either String b`.It is inspired from the `interact` function from the Prelude.
~~~{haskell}
interactWeb (reverse :: String -> String)
~~~This creates a server listening on port 8080. You can change the port with the `PORT` env variable.
You can query it via a browser at or by using
curl/httpiehttpie
------~~~{bash}
http :8080 input=""
~~~curl
----~~~{bash}
curl localhost:8080 -d input=""
~~~