packages feed

property-list 0.1.0.2 → 0.1.0.3

raw patch · 3 files changed

+7/−5 lines, 3 filesdep ~basedep ~timePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base, time

API changes (from Hackage documentation)

- Data.PropertyList: class (PListAlgebra f a, PListCoalgebra f a) => InitialPList f a | f -> a, a -> f
+ Data.PropertyList: class (PListAlgebra f a, PListCoalgebra f a) => InitialPList f a | f -> a, a -> f where foldPList f = go where go = f . fmap (fmap go) . plistCoalgebra
- Data.PropertyList: class PropertyListItem i
+ Data.PropertyList: class PropertyListItem i where listToPropertyList = plArray . map toPropertyList listFromPropertyList (fromPlArray -> Just x) = mapM fromPropertyList x listFromPropertyList _ = Nothing
- Data.PropertyList: class (PListCoalgebra f a, PListAlgebra f a) => TerminalPList f a | f -> a, a -> f
+ Data.PropertyList: class (PListCoalgebra f a, PListAlgebra f a) => TerminalPList f a | f -> a, a -> f where unfoldPList f = go where go = plistAlgebra . fmap (fmap go) . f
- Data.PropertyList.Algebra: class (PListAlgebra f a, PListCoalgebra f a) => InitialPList f a | f -> a, a -> f
+ Data.PropertyList.Algebra: class (PListAlgebra f a, PListCoalgebra f a) => InitialPList f a | f -> a, a -> f where foldPList f = go where go = f . fmap (fmap go) . plistCoalgebra
- Data.PropertyList.Algebra: class (PListCoalgebra f a, PListAlgebra f a) => TerminalPList f a | f -> a, a -> f
+ Data.PropertyList.Algebra: class (PListCoalgebra f a, PListAlgebra f a) => TerminalPList f a | f -> a, a -> f where unfoldPList f = go where go = plistAlgebra . fmap (fmap go) . f

Files

property-list.cabal view
@@ -1,14 +1,14 @@ name:                   property-list-version:                0.1.0.2+version:                0.1.0.3 stability:              experimental license:                PublicDomain  cabal-version:          >= 1.6 build-type:             Simple -author:                 James Cook <james.cook@usma.edu>-maintainer:             James Cook <james.cook@usma.edu>-homepage:               http://code.haskell.org/~mokus/property-list+author:                 James Cook <mokus@deepbondi.net>+maintainer:             James Cook <mokus@deepbondi.net>+homepage:               https://github.com/mokus0/property-list  category:               Data, Parsing, XML synopsis:               Apple property list parser
src/Data/PropertyList/Binary/Float.hs view
@@ -11,6 +11,7 @@  import Foreign import GHC.Float+import System.IO.Unsafe (unsafePerformIO)  -- TODO: create a library or extend an existing one to include a module Data.Float.IEEE -- which exports types Float32, Float64, etc., with proper IEEE-safe conversions
src/Data/PropertyList/Types.hs view
@@ -1,7 +1,8 @@ {-# LANGUAGE      MultiParamTypeClasses,     FlexibleContexts, FlexibleInstances,-    GeneralizedNewtypeDeriving, TypeFamilies+    GeneralizedNewtypeDeriving, TypeFamilies,+    DeriveTraversable   #-}  -- |This module implements the 'PropertyList' and 'PartialPropertyList' types