A small utility to declare type-safe static URIs http://github.com/snakamura/network-uri-static
|Latest on Hackage:||0.1.0.0|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
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.