packages feed

syb 0.3.1 → 0.3.2

raw patch · 3 files changed

+46/−18 lines, 3 files

Files

+ README view
@@ -0,0 +1,43 @@+syb: Scrap Your Boilerplate!+================================================================================++Scrap Your Boilerplate (SYB) is a library for generic programming in Haskell. It +is supported since the GHC >= 6.0 implementation of Haskell. Using this +approach, you can write generic functions such as traversal schemes (e.g., +everywhere and everything), as well as generic read, generic show and generic +equality (i.e., gread, gshow, and geq). This approach is based on just a few +primitives for type-safe cast and processing constructor applications. ++It was originally developed by Ralf Lämmel and Simon Peyton Jones. Since then, +many people have contributed with research relating to SYB or its applications. ++More information is available on the webpage: +http://www.cs.uu.nl/wiki/GenericProgramming/SYB+++Features+--------++* Easy generic programming with combinators+* GHC can derive Data and Typeable instances for your datatypes+* Comes with many useful generic functions+++Requirements+------------++* GHC 6.10.1 or later+* Cabal 1.6 or later+++Bugs & Support+--------------++Please report issues or request features at the bug tracker:++  http://code.google.com/p/scrapyourboilerplate/issues/list++For discussion about the library with the authors, maintainers, and other+interested persons use the mailing list:++  http://www.haskell.org/mailman/listinfo/generics
src/Data/Generics.hs view
@@ -30,25 +30,9 @@   module Data.Generics.Twins,     -- twin traversal, e.g., generic eq   module Data.Generics.Builders,  -- term builders -#ifdef __GLASGOW_HASKELL__-#ifndef __HADDOCK__-        -- Data types for the sum-of-products type encoding;-        -- included for backwards compatibility; maybe obsolete.-        (:*:)(..), (:+:)(..), Unit(..)-#endif-#endif-  ) where  --------------------------------------------------------------------------------#ifdef __GLASGOW_HASKELL__-#ifndef __HADDOCK__-        -- Data types for the sum-of-products type encoding;-        -- included for backwards compatibility; maybe obsolete.-import GHC.Base ( (:*:)(..), (:+:)(..), Unit(..) )-#endif-#endif  import Data.Data import Data.Generics.Instances ()
syb.cabal view
@@ -1,5 +1,5 @@ name:                 syb-version:              0.3.1+version:              0.3.2 license:              BSD3 license-file:         LICENSE author:               Ralf Lammel, Simon Peyton Jones@@ -21,7 +21,8 @@ cabal-version:          >= 1.6 tested-with:            GHC == 6.10.4, GHC == 6.12.3, GHC == 7.0.1 -extra-source-files:     tests/*.hs+extra-source-files:     tests/*.hs,+                        README  Library {   hs-source-dirs:         src