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

[ library, mit, network ] [ Propose Tags ]

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 "")

or using QuasiQuote:

url :: URI
url = [uri||]

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

Versions [faq],,,,
Change log
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
Category Network
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by snak at 2020-05-05T04:28:48Z
Distributions NixOS:
Downloads 2106 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
Last success reported on 2020-05-05 [all 2 reports]


  • Network
    • URI
      • Network.URI.Static



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


Maintainer's Corner

For package maintainers and hackage trustees