The nero package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Warnings:

This package provides the core functionality of the Nero HTTP toolkit.

Check the README for a more detailed explanation.


[Skip to ReadMe]

Properties

Versions0.1, 0.1.1, 0.2, 0.3, 0.3.1, 0.3.1
Change logCHANGELOG.md
Dependenciesbase (>=4.6 && <4.9), bifunctors (>=4.1.1.1), bytestring (>=0.10.0.2), containers (>=0.5.0.0), lens (>=4.1.2.1), text (>=0.11.3.1) [details]
LicenseBSD3
CopyrightCopyright (C) 2015 J. Daniel Navarro
AuthorDanny Navarro
MaintainerDanny Navarro <j@dannynavarro.net>
CategoryWeb
Home pagehttps://github.com/plutonbrb/nero
Bug trackerhttps://github.com/plutonbrb/nero/issues
Source repositoryhead: git clone git://github.com/plutonbrb/nero.git
UploadedThu Apr 16 09:58:23 UTC 2015 by jdnavarro

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for nero-0.3.1

Nero

A Lens-based HTTP toolkit.

:warning: The following is a declaration of intentions. Expect wild changes in the API until the 1.0.0 release.

Hackage Version Build Status

Example

{-# LANGUAGE OverloadedStrings #-}
import Nero.Prelude
import Nero (Request, Response, _GET, prefixed, ok)
import Nero.Warp (serve) -- from `nero-warp`

app :: Request -> Maybe Response
app request = request ^? _GET . prefixed "/hello/" <&> \name ->
    ok $ "<h1>Hello " <> name <> "</h1>"

main :: IO ()
main = serve 8080 app

More examples in the [examples directory]( https://github.com/plutonbrb/nero/tree/master/examples).