geniplate-mirror 0.7.1 → 0.7.2
raw patch · 4 files changed
+19/−10 lines, 4 filesdep ~template-haskellPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: template-haskell
API changes (from Hackage documentation)
- Data.Generics.Geniplate: instance Eq Mode
- Data.Generics.Geniplate: instance Ord Mode
- Data.Generics.Geniplate: instance Quasi U
- Data.Generics.Geniplate: instance Show Mode
+ Data.Generics.Geniplate: instance GHC.Classes.Eq Data.Generics.Geniplate.Mode
+ Data.Generics.Geniplate: instance GHC.Classes.Ord Data.Generics.Geniplate.Mode
+ Data.Generics.Geniplate: instance GHC.Show.Show Data.Generics.Geniplate.Mode
+ Data.Generics.Geniplate: instance Language.Haskell.TH.Syntax.Quasi Data.Generics.Geniplate.U
- Data.Generics.Geniplate: descend :: DescendM Identity a => (a -> a) -> (a -> a)
+ Data.Generics.Geniplate: descend :: (DescendM Identity a) => (a -> a) -> (a -> a)
- Data.Generics.Geniplate: transform :: TransformBi a a => (a -> a) -> a -> a
+ Data.Generics.Geniplate: transform :: (TransformBi a a) => (a -> a) -> a -> a
- Data.Generics.Geniplate: transformM :: TransformBiM m a a => (a -> m a) -> a -> m a
+ Data.Generics.Geniplate: transformM :: (TransformBiM m a a) => (a -> m a) -> a -> m a
- Data.Generics.Geniplate: universe :: UniverseBi a a => a -> [a]
+ Data.Generics.Geniplate: universe :: (UniverseBi a a) => a -> [a]
Files
- Data/Generics/Geniplate.hs +11/−2
- LICENSE +2/−6
- changelog +4/−0
- geniplate-mirror.cabal +2/−2
Data/Generics/Geniplate.hs view
@@ -396,8 +396,13 @@ getTyConInfo con = do info <- qReify con case info of- TyConI (DataD _ _ tvs cs _) -> return (tvs, cs)+#if __GLASGOW_HASKELL__ <= 710+ TyConI (DataD _ _ tvs cs _) -> return (tvs, cs) TyConI (NewtypeD _ _ tvs c _) -> return (tvs, [c])+#else+ TyConI (DataD _ _ tvs _ cs _) -> return (tvs, cs)+ TyConI (NewtypeD _ _ tvs _ c _) -> return (tvs, [c])+#endif PrimTyConI{} -> return ([], []) i -> genError $ "unexpected TyCon: " ++ show i @@ -415,8 +420,12 @@ getNameType name = do info <- qReify name case info of+#if __GLASGOW_HASKELL__ <= 710 VarI _ t _ _ -> splitType t- _ -> genError $ "Name is not variable: " ++ pprint name+#else+ VarI _ t _ -> splitType t+#endif+ _ -> genError $ "Name is not variable: " ++ pprint name unList :: Type -> Type unList (AppT (ConT n) t) | n == ''[] = t
LICENSE view
@@ -1,8 +1,4 @@-Copyright (c) 2003-2008, Isaac Jones, Simon Marlow, Martin Sjögren,- Bjorn Bringert, Krasimir Angelov,- Malcolm Wallace, Ross Patterson,- Lemmih, Paolo Martini, Don Stewart,- Duncan Coutts+Copyright (c) 2010-2015, Lennart Augustsson All rights reserved. Redistribution and use in source and binary forms, with or without@@ -17,7 +13,7 @@ disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Isaac Jones nor the names of other+ * Neither the name of Lennart Augustsson nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission.
changelog view
@@ -1,3 +1,7 @@+geniplate 0.7.2 (released 2016-01-04):+* Support template-haskell 2.11.*.+ Contributed by Andrés Sicard-Ramírez.+ geniplate 0.7.1 (released 2015-06-02): * Fix build on GHC 7.4.1
geniplate-mirror.cabal view
@@ -1,5 +1,5 @@ Name: geniplate-mirror-Version: 0.7.1+Version: 0.7.2 Synopsis: Use Template Haskell to generate Uniplate-like functions. Description: Use Template Haskell to generate Uniplate-like functions. .@@ -28,6 +28,6 @@ location: https://github.com/danr/geniplate library- Build-Depends: base >= 4 && < 5.0, template-haskell < 2.11, mtl+ Build-Depends: base >= 4 && < 5.0, template-haskell < 2.12, mtl Exposed-modules: Data.Generics.Geniplate