packages feed

deepseq-generics-0.1.1.0: deepseq-generics.cabal

-- Initial deepseq-generics.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                deepseq-generics
version:             0.1.1.0
synopsis:            GHC.Generics-based Control.DeepSeq.rnf implementation
homepage:            https://github.com/hvr/deepseq-generics
license:             BSD3
license-file:        LICENSE
author:              Herbert Valerio Riedel
maintainer:          hvr@gnu.org
copyright:           2012, Herbert Valerio Riedel
category:            Control
build-type:          Simple
cabal-version:       >=1.10
tested-with:         GHC >=7.4.1
description:
    This package provides a "GHC.Generics"-based
    'Control.DeepSeq.Generics.genericRnf' function which can be used
    for providing a 'rnf' implementation. See the documentation for
    the 'genericRnf' function in the "Control.DeepSeq.Generics" module
    to get started.
    .
    The original idea was pioneered in the @generic-deepseq@ package
    (see <http://www.haskell.org/pipermail/haskell-cafe/2012-February/099551.html>
    for more information).
    .
    This package differs from the @generic-deepseq@ package by working
    in combination with the existing @deepseq@ package as opposed to defining a
    conflicting drop-in replacement for @deepseq@'s @Control.Deepseq@ module.

extra-source-files: changelog

source-repository head
    type:     git
    location: https://github.com/hvr/deepseq-generics.git

library
    default-language:    Haskell2010
    exposed-modules:     Control.DeepSeq.Generics
    build-depends:       base >= 4.5 && < 4.7, ghc-prim >= 0.2 && < 0.4, deepseq >= 1.2.0.1 && < 1.4
    other-extensions:    BangPatterns, TypeOperators, FlexibleContexts
    ghc-options: -Wall

test-suite deepseq-generics-tests
    default-language:    Haskell2010
    type: exitcode-stdio-1.0
    main-is: Suite.hs
    hs-source-dirs: test
    other-extensions:    CPP, TupleSections, DeriveDataTypeable
    ghc-options: -Wall

    build-depends:
        base,
        deepseq,
        deepseq-generics,
        ghc-prim,
        -- end of packages with inherited version constraints
        test-framework,
        test-framework-hunit,
        HUnit