network-uri-static: A small utility to declare type-safe static URIs

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] [Publish]

This library helps you declare type-safe static URIs by parsing URIs at compile time.

You can write static URIs using typed template haskell:

url :: URI
url = $$(staticURI "http://www.google.com/")

or using QuasiQuote:

url :: URI
url = [uri|http://www.google.com/|]

When you pass a malformed URI to these expressions, they emit an error at compile time.

Properties

Versions 0.1.0.0, 0.1.1.0, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.1.2.2
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), network-uri (>=2.5 && <3), template-haskell (>=2.9 && <3) [details]
License MIT
Copyright 2015 Satoshi Nakamura
Author Satoshi Nakamura
Maintainer snak@snak.org
Category Network
Home page http://github.com/snakamura/network-uri-static
Bug tracker https://github.com/snakamura/network-uri-static/issues
Source repo head: git clone git://github.com/snakamura/network-uri-static.git
Uploaded by snak at 2018-10-22T05:26:24Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees