ghc-syb-utils 0.2.0.0 → 0.2.1.0
raw patch · 2 files changed
+21/−11 lines, 2 filesdep ~ghcdep ~sybPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: ghc, syb
API changes (from Hackage documentation)
- GHC.SYB.Utils: everythingBut :: GenericQ Bool -> (r -> r -> r) -> r -> GenericQ r -> GenericQ r
- GHC.SYB.Utils: showData :: (Data a) => Stage -> Int -> a -> String
+ GHC.SYB.Utils: showData :: Data a => Stage -> Int -> a -> String
Files
- GHC/SYB/Utils.hs +8/−4
- ghc-syb-utils.cabal +13/−7
GHC/SYB/Utils.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {- | "GHC.Syb.Utils" provides common utilities for the Ghc Api, either based on Data\/Typeable or for use with Data.Generics over Ghc Api types.@@ -185,7 +186,10 @@ import FastString(FastString) import NameSet(NameSet,nameSetToList) +#if __GLASGOW_HASKELL__ < 700 import GHC.SYB.Instances+#endif + import Data.List -- | Ghc Ast types tend to have undefined holes, to be filled@@ -251,7 +255,7 @@ -- | A variation of 'everything', using a 'GenericQ Bool' to skip -- parts of the input 'Data'.-everythingBut :: GenericQ Bool -> (r -> r -> r) -> r -> GenericQ r -> GenericQ r-everythingBut q k z f x - | q x = z- | otherwise = foldl k (f x) (gmapQ (everythingBut q k z f) x)+--everythingBut :: GenericQ Bool -> (r -> r -> r) -> r -> GenericQ r -> GenericQ r+--everythingBut q k z f x +-- | q x = z+-- | otherwise = foldl k (f x) (gmapQ (everythingBut q k z f) x)
ghc-syb-utils.cabal view
@@ -1,5 +1,5 @@ name: ghc-syb-utils-version: 0.2.0.0+version: 0.2.1.0 license: BSD3 license-file: LICENSE author: Claus Reinke@@ -15,12 +15,18 @@ tested-with: GHC ==6.10.4, GHC ==6.12.1 library- build-depends: base >= 4 && < 5,- ghc-syb == 0.2.*,- syb == 0.1.*,- ghc >= 6.10 && < 6.14- + build-depends: base >= 4 && < 5+ , syb >= 0.1.0++ if impl(ghc >= 7.0)+ build-depends:+ ghc+ else+ build-depends:+ ghc >= 6.10,+ ghc-syb == 0.2.*+ hs-source-dirs: .- extensions: Rank2Types+ extensions: Rank2Types, CPP exposed-modules: GHC.SYB.Utils