Package maintainers and Hackage trustees are allowed to edit certain bits
of package metadata after a release, without uploading a new tarball.
Note that the tarball itself is never changed, just the metadata that is
stored separately. For more information about metadata revisions, please
refer to the
Hackage Metadata Revisions FAQ.
No. |
Time |
User |
SHA256 |
-r2 (apiary-1.3.0-r2) |
2015-02-18T14:39:22Z |
HirotomoMoriwaki |
a33e324c2280f4b84405bd625f6fb6b281352bc6c4dab01275b8a62114b0da16
|
|
|
-r1 (apiary-1.3.0-r1) |
2015-02-18T11:19:04Z |
HirotomoMoriwaki |
2da1e8505b9d73d1c8ae1dae1631d2ceae534918b3374806806b99d5785d5c2b
|
|
Changed description
from Simple and type safe web framework that can be automatically generate API documentation.
@
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
import Web.Apiary
import Network.Wai.Handler.Warp
import qualified Data.ByteString.Lazy.Char8 as L
main :: IO ()
main = runApiary (run 3000) def $ do
  [capture|/age::Int|] . ([key|name|] =: pLazyByteString) . method GET . action $ do
      (age, name) <- [params|age,name|]
      guard (age >= 18)
      contentType "text/html"
      mapM_ appendLazyBytes ["<h1>Hello, ", name, "!</h1>\\n"]
@
@
$ curl localhost:3000
404 Page Notfound.
$ curl 'localhost:3000/20?name=arice'
<h1>Hello, arice!</h1>
$ curl 'localhost:3000/15?name=bob'
404 Page Notfound.
$ curl -XPOST 'localhost:3000/20?name=arice'
404 Page Notfound.
@
* High performance(benchmark: <https://github.com/philopon/apiary-benchmark>).
* Nestable route handling(Apiary Monad; capture, method and more.).
* Type safe route filter.
* Auto generate API documentation(example: <http://best-haskell.herokuapp.com/api/documentation>).
more examples: <https://github.com/philopon/apiary/blob/v1.2.0/examples/>
live demo: <http://best-haskell.herokuapp.com/> (source code: <https://github.com/philopon/best-haskell>)
to Simple and type safe web framework that can be automatically generate API documentation.
@
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
import Web.Apiary
import Network.Wai.Handler.Warp
import qualified Data.ByteString.Lazy.Char8 as L
main :: IO ()
main = runApiary (run 3000) def $ do
  [capture|/age::Int|] . ([key|name|] =: pLazyByteString) . method GET . action $ do
      (age, name) <- [params|age,name|]
      guard (age >= 18)
      contentType "text/html"
      mapM_ appendLazyBytes ["<h1>Hello, ", name, "!</h1>\\n"]
@
@
$ curl localhost:3000
404 Page Notfound.
$ curl 'localhost:3000/20?name=arice'
<h1>Hello, arice!</h1>
$ curl 'localhost:3000/15?name=bob'
404 Page Notfound.
$ curl -XPOST 'localhost:3000/20?name=arice'
404 Page Notfound.
@
* High performance(benchmark: <https://github.com/philopon/apiary-benchmark>).
* Nestable route handling(Apiary Monad; capture, method and more.).
* Type safe route filter.
* Auto generate API documentation(example: <http://best-haskell.herokuapp.com/api/documentation>).
more examples: <https://github.com/philopon/apiary/blob/v1.3.0/examples/>
live demo: <http://best-haskell.herokuapp.com/> (source code: <https://github.com/philopon/best-haskell>)
|
-r0 (apiary-1.3.0-r0) |
2015-02-18T11:17:02Z |
HirotomoMoriwaki |
c9f56e104c437911395a02e9bf77bb17e7e9ea70316dab83704aea24904aeff2
|
|
|