http-link-header: A parser and writer for the HTTP Link header per RFC 5988

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]

Please see the README on GitHub at

[Skip to Readme]


Versions 0.1.0, 0.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3,, 1.1.1, 1.1.1, 1.2.0, 1.2.1
Change log None available
Dependencies attoparsec (>= && <0.14), base (>=4.3 && <5), bytestring (>= && <0.11), errors (>=2.3.0 && <2.4), http-api-data (>= && <0.5), network-uri (>= && <2.7), text (>= && <1.3) [details]
License LicenseRef-PublicDomain
Copyright 2014-2020 Greg V <>
Author Greg V
Category Web
Home page
Bug tracker
Source repo head: git clone
Uploaded by SShuck at 2020-08-27T00:19:19Z


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Readme for http-link-header-1.1.1

[back to package description]

http-link-header Hackage Build Status Coverage Status unlicense

A Haskell library than implements a parser and a writer for the HTTP Link header as specified in RFC 5988 "Web Linking".


import Network.HTTP.Link
import Network.URI
import Data.Maybe

----- Writing
writeLinkHeader [ Link (fromJust $ parseURI "") [(Rel, "next"), (Title, "hello world")]
                , Link (fromJust $ parseURI "https://yolo.tld") [(Rel, "license")] ]
-- "<>; rel=\"next\"; title=\"hello world\", <https://yolo.tld>; rel=\"license\""

----- Parsing
parseLinkHeader "<>; rel=\"next\", <>; rel=prev"
-- Just [ Link [(Rel, "next")]
--      , Link [(Rel, "prev")] ]


Use stack to build.
Use ghci to run tests quickly with :test (see the .ghci file).

$ stack build

$ stack test && rm tests.tix

$ stack bench

$ stack ghci --ghc-options="-fno-hpc"


Please feel free to submit pull requests! Bugfixes and simple non-breaking improvements will be accepted without any questions :-)

By participating in this project you agree to follow the Contributor Code of Conduct.

The list of contributors is available on GitHub.


This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE file or