nero: Lens-based HTTP toolkit

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.



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

Check the README for a more detailed explanation.

[Skip to ReadMe]


Versions0.1, 0.1.1, 0.2, 0.3, 0.3.1, 0.3.1
Dependenciesbase (>=4.6 && <4.9), bifunctors (>=, bytestring (>=, containers (>=, lens (>=, text (>= [details]
CopyrightCopyright (C) 2015 J. Daniel Navarro
AuthorDanny Navarro
MaintainerDanny Navarro <>
Home page
Bug tracker
Source repositoryhead: git clone git://
UploadedThu Apr 16 09:58:23 UTC 2015 by jdnavarro




Maintainers' corner

For package maintainers and hackage trustees

Readme for nero-0.3.1

[back to package description]


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


{-# 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](