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

[ library, mit, network ] [ Propose Tags ] [ Report a vulnerability ]

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.

Modules

[Last Documentation]

  • Network
    • URI
      • Network.URI.Static

Flags

Automatic Flags
NameDescriptionDefault
defer-to-network-uriDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.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 2020-05-05T04:28:48Z
Distributions NixOS:0.1.2.2
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2771 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2020-05-05 [all 2 reports]