The genericDrop function is an overloaded version of drop, which accepts any Integral value as the number of elements to drop.
The genericLength function is an overloaded version of length. In particular, instead of returning an Int, it returns any type which is an instance of Num. It is, however, less efficient than length.
The genericTake function is an overloaded version of take, which accepts any Integral value as the number of elements to take.
"Scrap your boilerplate" --- Generic programming in Haskell See http://www.cs.uu.nl/wiki/GenericProgramming/SYB. To scrap your boilerplate it is sufficient to import the present module, which simply re-exports all themes of the Data.Generics library.
Use decimal notation for values between 0.1 and 9,999,999, and scientific notation otherwise.
The general scheme underlying generic functions assumed by gfoldl; there are isomorphisms such as GenericT = Generic T.
Wrapped generic functions; recall: [Generic c] would be legal but [Generic' c] not.
Generic Data.Binary derivation using GHC generics.
This package provides a deepseq function analogous to seq, except that it traverses the entire data structure, evaluating it fully, and not just up to head normal form.
Using lists as an example:
> > [1,2,undefined] `seq` 3
Whereas with deepseq:
> > [1,2,undefined] `deepseq` 3
> *** Exception: Prelude.undefined
Unlike the deepseq package, this implementation is based on the GHC.Generics framework as found in GHC >= 7.2, so that it can generate instances automatically for any datatype that has a Generic instance, without further code.
> data MyType = MyType String Int (Maybe Double)
> deriving Generic
> instance DeepSeq MyType
Changes in version 22.214.171.124:
* Vastly improved performance. As a consequence of these changes, the member function of the DeepSeq class is now rnf, instead of deepseq.
* New instances for functions, Ratio and Complex types.
Changes in version 126.96.36.199:
* Fix the U1 and V1 instances.
Changes in version 188.8.131.52:
* No functional changes, updated to correct the URLs of the repository and the issue tracker.
This package provides functionality for generalizing the deriving mechanism in Haskell to arbitrary classes. It was first described in the paper:
* A generic deriving mechanism for Haskell. Jose Pedro Magalhaes, Atze Dijkstra, Johan Jeuring, and Andres Loeh. Haskell'10.
The current implementation integrates with the new GHC Generics. See http://www.haskell.org/haskellwiki/Generics for more information. Template Haskell code is provided for supporting GHC before version 7.2.
This package implements simple generic multithread TCP/IP server. It can be used in two ways. First, one can simply call genericServer function. Or one can declare an instance of Server class and then run server function.
Generic implementation of Storable
Generic tree type
Marshalling Haskell values to/from XML.
Generic builders i.e., produce an "a".
Generic monadic transformations, i.e., take an "a" and compute an "a"
Show more results