microformats2-types-0.4.0: Microformats 2 types (with Aeson instances)

Safe HaskellTrustworthy
LanguageHaskell2010

Data.Microformats2

Description

Microformats 2 types for Haskell.

Notes:

  1. We don't duplicate sub-properties in parent types. E.g. h-adr has both p-geo and p-latitude, p-longitude, p-altitude. Adr only has a Geo.
  2. Lazy Text is used for storing texts, because it's the format used in Scotty, Hastache and other popular web libraries.
  3. Lists are used everywhere, because all properties might be multivalued, even though it doesn't always make sense. Use headMay from the safe package!
  4. SomethingReference sum types are used for, well, references. The spec always makes embedded microformats optional, so these types include Text options.

Synopsis

Documentation

data Geo Source

A Geo type, based on h-geo http://microformats.org/wiki/h-geo

Constructors

Geo