microformats2-parser: A Microformats 2 parser.

[ library, program, public-domain, web ] [ Propose Tags ]

[Skip to Readme]
Versions [RSS] [faq] 0.1.0, 0.1.1, 1.0.0, 1.0.1,,,,,,,,,,
Dependencies base (>= && <5), blaze-html, blaze-markup, containers, data-default, either, html-conduit, microformats2-parser, microformats2-types, network, options, pcre-heavy, safe, scotty, streaming-commons, stringable, text, time, wai-extra, warp, xml-lens, xss-sanitize [details]
License LicenseRef-PublicDomain
Copyright 2015 Greg V <greg@unrelenting.technology>
Author Greg V
Maintainer greg@unrelenting.technology
Category Web
Home page https://github.com/myfreeweb/microformats2-parser
Source repo head: git clone git://github.com/myfreeweb/microformats2-parser.git
Uploaded by myfreeweb at 2015-07-31T09:22:00Z
Distributions NixOS:
Executables microformats2-parser
Downloads 7583 total (55 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-02 [all 6 reports]


  • Data
    • Microformats2
      • Data.Microformats2.Parser
        • Data.Microformats2.Parser.Internal


Maintainer's Corner

For package maintainers and hackage trustees


Readme for microformats2-parser-0.1.1

[back to package description]

microformats2-parser Hackage Build Status Coverage Status unlicense

Microformats 2 parser for Haskell!

Originally created for sweetroll :-)

The types are located in a separate package called microformats2-types.



{-# LANGUAGE OverloadedStrings #-}
import Data.Microformats2.Parser
import Data.Microformats2.Types

parseEntry Sanitize $ documentRoot $ parseLBS "<body><p class=h-entry><h1 class=p-name>Yay!</h1></p></body>"
-- [ Entry { entryName = [ "Yay!" ], ... } ]

Look at the API docs on Hackage for more info.


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

$ stack build

$ stack test && rm tests.tix

$ 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 unlicense.org.