-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
v 1.0 | ||
===== | ||
Initial release | ||
|
||
v3.0 | ||
==== | ||
New release, powered by servant | ||
- Side by side input and output | ||
- Form submitted via ajax | ||
- httpie and curl samples | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
quickwebapp | ||
=========== | ||
A quick-and-dirty api generator, for any function `a -> b` which can be wrapped | ||
inside a function `ByteString -> ByteString`. | ||
It is inspired from the 'interact' function from 'Prelude'. | ||
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 | ||
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 <http://localhost:8080> or by using | ||
curl/httpie | ||
|
||
httpie | ||
------ | ||
|
||
~~~{bash} | ||
http :8080 input="<your input string>" | ||
~~~ | ||
|
||
This creates a server listening on port 3000. | ||
curl | ||
---- | ||
|
||
~~~{bash} | ||
curl localhost:8080 -d input="<your input string>" | ||
~~~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: quickwebapp | ||
version: 3.0.0.1 | ||
version: 3.0.0.2 | ||
synopsis: A quick webapp generator for any file processing tool | ||
description: | ||
A quick-and-dirty api generator, inspired from the 'interact' function from | ||
|
@@ -15,7 +15,7 @@ author: Julien Tanguy | |
maintainer: [email protected] | ||
category: Web | ||
build-type: Simple | ||
extra-source-files: Changelog | ||
extra-source-files: Changelog, README.md | ||
cabal-version: >=1.10 | ||
|
||
bug-reports: https://github.com/jtanguy/quickwebapp/issues | ||
|