packages feed

toolshed-0.14.0.0: toolshed.cabal

--Package-properties
Name:			toolshed
Version:		0.14.0.0
Cabal-Version:		>= 1.6
Copyright:		(C) 2010 Dr. Alistair Ward
License:		GPL
License-file:		LICENSE
Author:			Dr. Alistair Ward
Stability:		Stable interface. Ill-defined scope.
Synopsis:		Utilities used by other packages.
Build-Type:		Simple
Description:		An ill-defined collection of simple unrelated utilities used by other packages from <http://functionalley.eu>
Category:		Utils
Tested-With:		GHC == 6.10, GHC == 6.12, GHC == 7.0, GHC == 7.4
Homepage:		http://functionalley.eu
Maintainer:		toolshed <at> functionalley <dot> eu
Bug-reports:		toolshed <at> functionalley <dot> eu
Extra-Source-Files:	changelog, copyright, makefile

flag haveDeepSeq
    Description:	Import the type-class 'NFData' from module 'Control.DeepSeq' rather than 'Control.Parallel.Strategies'.
    Default:		True

flag llvm
    Description:	Whether the 'llvm' compiler-backend has been installed and is required for code-generation.
    manual:		True
    default:		False

Library
    hs-source-dirs:	src

    Exposed-modules:
        ToolShed.Data.Foldable
        ToolShed.Data.List
        ToolShed.Data.List.Runlength
        ToolShed.Data.List.Splits
        ToolShed.Data.Pair
        ToolShed.Defaultable
        ToolShed.Options
        ToolShed.SelfValidate
        ToolShed.System.File
        ToolShed.System.Random
        ToolShed.System.TimeAction
        ToolShed.System.TimePure
        ToolShed.Test.ReversibleBoundedEnum
        ToolShed.Test.ReversibleEnum
        ToolShed.Test.ReversibleIO
        ToolShed.Test.SelfValidate
        ToolShed.Test.QuickCheck.Arbitrary.Array
        ToolShed.Test.QuickCheck.Arbitrary.ArrayElem
        ToolShed.Test.QuickCheck.Arbitrary.Map
        ToolShed.Test.QuickCheck.Arbitrary.Set

    Build-depends:
        array,
        base == 4.*,
        containers >= 0.4.2.0,
        directory,
        filepath,
        QuickCheck >= 2.2,
        random

    GHC-options:	-Wall -O2

    if impl(ghc >= 7.4.1)
        GHC-prof-options:	-prof -fprof-auto -fprof-cafs
    else
        GHC-prof-options:	-prof -auto-all -caf-all

    if flag(haveDeepSeq)
        Build-depends:	deepseq >= 1.1
        CPP-options:	-DHAVE_DEEPSEQ

    if impl(ghc >= 7.0) && flag(llvm)
        GHC-options:	-fllvm

Executable toolshed
    hs-source-dirs:	src

    Main-Is:		Main.hs

    Other-modules:
        ToolShed.Test.QuickChecks
        ToolShed.Test.Data.Foldable
        ToolShed.Test.Data.List
        ToolShed.Test.Data.List.Runlength
        ToolShed.Test.Data.List.Splits

    Build-depends:
        Cabal >= 1.6 && < 2