@hackage microformats2-parser0.1.1

A Microformats 2 parser.

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.

DEMO PAGE

Usage

{-# 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.

Development

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"

Contributing

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.

License

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