derive 2.5.13 → 2.5.14
raw patch · 6 files changed
+52/−9 lines, 6 files
Files
- CHANGES.txt +39/−0
- LICENSE +1/−1
- Language/Haskell/Convert.hs +2/−0
- Language/Haskell/TH/Compat.hs +1/−2
- Language/Haskell/TH/FixedPpr.hs +2/−0
- derive.cabal +7/−6
+ CHANGES.txt view
@@ -0,0 +1,39 @@+Changelog for Derive++2.5.14+ #3, support GHC 7.9+2.5.13+ #622, turn on more Haskell extensions+2.5.12+ Upgrade to haskell-src-exts-1.14.*+2.5.11+ Support GHC 7.6+2.5.10+ Add derivation for Lens+ Modify the Typeable derivation to use mkTyCon3+2.5.9+ Support the Template Haskell Unpacked constructor+2.5.8+ Allow haskell-src-exts-1.13.*+2.5.7+ Allow haskell-src-exts-1.12.*+2.5.6+ Update the copyright year+ Allow transformers-0.3.*+2.5.5+ #513, allow derive to be run as a preprocessor+ Improve the documentation for UniplateDirect+2.5.4+ #394, allow tuple names in more places+ Fix error when deriving Binary on "data A = B"+2.5.3+ GHC 7.2 compatibility+2.5.2+ Relax the dependency on haskell-src-exts to < 1.12+2.5.1+ Improve documentation for deriveMain+2.5+ #257, add Data.DeriveMain.deriveMain, to allow user derivations+2.4.2+ Relax the dependency on haskell-src-exts to < 1.11+ Start of changelog
LICENSE view
@@ -1,4 +1,4 @@-Copyright Neil Mitchell 2006-2013.+Copyright Neil Mitchell 2006-2014. All rights reserved. Redistribution and use in source and binary forms, with or without
Language/Haskell/Convert.hs view
@@ -248,6 +248,7 @@ conv (AppT (AppT ArrowT x) y) = KindFn (c x) (c y) #endif +#if __GLASGOW_HASKELL__ < 709 instance Convert TH.Pred HS.Asst where conv (ClassP x y) = ClassA (UnQual $ c x) $ c y conv (TH.EqualP x y) = HS.EqualP (c x) $ c y@@ -255,6 +256,7 @@ instance Convert HS.Asst TH.Pred where conv (ClassA x y) = ClassP (c x) $ c y conv (HS.EqualP x y) = TH.EqualP (c x) $ c y+#endif instance Convert HS.TyVarBind TH.TyVarBndr where conv (UnkindedVar x) = PlainTV $ c x
Language/Haskell/TH/Compat.hs view
@@ -25,8 +25,7 @@ dataDefinitionTypeArgs (NewtypeD cx name args con derv) = args #endif --#if __GLASGOW_HASKELL__ >= 612+#if __GLASGOW_HASKELL__ >= 612 && __GLASGOW_HASKELL__ < 709 typeToPred :: Type -> Pred typeToPred (ConT v) = ClassP v [] typeToPred (AppT x y) = ClassP v (t++[y])
Language/Haskell/TH/FixedPpr.hs view
@@ -405,8 +405,10 @@ ppr (ArrowK j k) = ppr j <+> text "->" <+> ppr k #endif +#if __GLASGOW_HASKELL__ < 709 instance Ppr Pred where ppr (ClassP n ts) = ppr n <+> hsep (map ppr ts) ppr (EqualP t u ) = ppr t <+> text "~" <+> ppr u+#endif #endif
derive.cabal view
@@ -1,9 +1,9 @@ cabal-version: >= 1.6 build-type: Default name: derive-version: 2.5.13+version: 2.5.14 build-type: Simple-copyright: Neil Mitchell 2006-2013+copyright: Neil Mitchell 2006-2014 author: Neil Mitchell <ndmitchell@gmail.com> maintainer: Neil Mitchell <ndmitchell@gmail.com> homepage: http://community.haskell.org/~ndm/derive/@@ -16,16 +16,17 @@ It is designed to work with custom derivations, SYB and Template Haskell mechanisms. The tool requires GHC, but the generated code is portable to all compilers. We see this tool as a competitor to DrIFT.- extra-source-files: derive.htm+ CHANGES.txt+tested-with: GHC==7.6.3, GHC==7.4.2, GHC==7.2.2 source-repository head- type: darcs- location: http://community.haskell.org/~ndm/darcs/derive/+ type: git+ location: https://github.com/ndmitchell/derive.git executable derive- Main-Is: Main.hs+ main-is: Main.hs library build-depends: