packages feed

microformats2-types 0.1.0 → 0.2.0

raw patch · 2 files changed

+11/−6 lines, 2 filesdep +pandoc-typesPVP ok

version bump matches the API change (PVP)

Dependencies added: pandoc-types

API changes (from Hackage documentation)

- Data.Microformats2: instance Typeable1 Embedded
+ Data.Microformats2: instance Typeable Embedded
+ Data.Microformats2: type ContentReference = Either Pandoc Text
- Data.Microformats2: Entry :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe UTCTime -> Maybe UTCTime -> Embedded Card -> [Text] -> Maybe Text -> Maybe Text -> Maybe LocationReference -> [EntryReference] -> [Text] -> Maybe EntryReference -> Maybe EntryReference -> Maybe EntryReference -> Entry
+ Data.Microformats2: Entry :: Maybe Text -> Maybe Text -> Maybe ContentReference -> Maybe UTCTime -> Maybe UTCTime -> Embedded Card -> [Text] -> Maybe Text -> Maybe Text -> Maybe LocationReference -> [EntryReference] -> [Text] -> Maybe EntryReference -> Maybe EntryReference -> Maybe EntryReference -> Entry
- Data.Microformats2: entryContent :: Entry -> Maybe Text
+ Data.Microformats2: entryContent :: Entry -> Maybe ContentReference

Files

library/Data/Microformats2.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveDataTypeable, Trustworthy #-}  -- | Microformats 2 types for Haskell. --@@ -13,10 +13,11 @@ -- 3. Lazy Text is used for storing texts, because it's the format used in Scotty, Hastache and other popular web libraries. module Data.Microformats2 (module Data.Microformats2) where -import           Data.Typeable (Typeable)-import           Data.Text.Lazy (Text)+import safe      Data.Typeable (Typeable)+import safe      Data.Text.Lazy (Text)+import safe      Data.Data (Data) import           Data.Time (UTCTime)-import           Data.Data (Data)+import           Text.Pandoc.Definition (Pandoc)  -- | An alias for lazy Text as a phantom type for storing the type of linked data. type Link a = Text@@ -169,11 +170,14 @@ -- | An Entry reference. type EntryReference = Either (Embedded Cite) (Link Entry) +-- | A content reference.+type ContentReference = Either Pandoc Text+ -- | An Entry type, based on h-entry <http://microformats.org/wiki/h-entry> with popular extensions. data Entry = Entry   { entryName           :: Maybe Text   , entrySummary        :: Maybe Text-  , entryContent        :: Maybe Text+  , entryContent        :: Maybe ContentReference   , entryPublished      :: Maybe UTCTime   , entryUpdated        :: Maybe UTCTime   , entryAuthor         :: Embedded Card
microformats2-types.cabal view
@@ -1,5 +1,5 @@ name:            microformats2-types-version:         0.1.0+version:         0.2.0 synopsis:        Microformats 2 types for Haskell. category:        Web homepage:        https://github.com/myfreeweb/microformats2-types@@ -27,6 +27,7 @@       , time >= 1.4.0 && < 2       , either       , aeson+      , pandoc-types     default-language: Haskell2010     exposed-modules:         Data.Microformats2