data-fix 0.0.2 → 0.0.3
raw patch · 2 files changed
+5/−3 lines, 2 filesdep ~basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base
API changes (from Hackage documentation)
- Data.Fix: instance Data.Typeable.Internal.Typeable f => Data.Data.Data (Data.Fix.Fix f)
+ Data.Fix: instance (Data.Typeable.Internal.Typeable f, Data.Data.Data (f (Data.Fix.Fix f))) => Data.Data.Data (Data.Fix.Fix f)
Files
- data-fix.cabal +1/−1
- src/Data/Fix.hs +4/−2
data-fix.cabal view
@@ -1,5 +1,5 @@ Name: data-fix-Version: 0.0.2+Version: 0.0.3 Cabal-Version: >= 1.6 License: BSD3 License-file: LICENSE
src/Data/Fix.hs view
@@ -2,7 +2,9 @@ FlexibleContexts, UndecidableInstances, TypeSynonymInstances,- DeriveGeneric #-}+ DeriveGeneric,+ DeriveDataTypeable,+ StandaloneDeriving #-} -- | Fix-point type. It allows to define generic recurion schemes. -- -- > Fix f = f (Fix f)@@ -59,7 +61,7 @@ -- | A fix-point type. newtype Fix f = Fix { unFix :: f (Fix f) } deriving (Generic, Typeable)-instance Typeable f => Data (Fix f)+deriving instance (Typeable f, Data (f (Fix f))) => Data (Fix f) -- standard instances