packages feed

toolshed-0.18.0.0: toolshed.cabal

-- This file is part of ToolShed.
--
-- ToolShed is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- ToolShed is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with ToolShed.  If not, see <http://www.gnu.org/licenses/>.

Name:		toolshed
Version:	0.18.0.0
Cabal-version:	>= 1.10
Copyright:	(C) 2010-2015 Dr. Alistair Ward
License:	GPL
License-file:	LICENSE
Author:		Dr. Alistair Ward
Stability:	stable
Synopsis:	Ill-defined library.
Build-type:	Simple
Description:	Ill-defined unrelated utilities used by other packages from <http://functionalley.eu>
Category:	Utils
Tested-with:	GHC == 7.4, GHC == 7.6, GHC == 7.10.1, GHC == 8.0.1
Homepage:	http://functionalley.eu
Maintainer:	mailto:toolshed@functionalley.eu
Bug-reports:	mailto:toolshed@functionalley.eu

-- None of these files are needed at run-time.
Extra-source-files:
    .ghci
    changelog.markdown
    copyright
    README.markdown

source-repository head
    type:	git
    location:	https://github.com/functionalley/ToolShed

-- Enable using: 'runhaskell Setup configure -f llvm --verbose'.
flag llvm
    Description:	Whether the 'llvm' compiler-backend has been installed and is required for code-generation.
    Manual:		True
    Default:		False

Library
    Default-language:	Haskell2010
    GHC-options:	-O2 -Wall -fno-warn-tabs
    Hs-source-dirs:	src-lib

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

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

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

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

Test-Suite test
    Default-language:	Haskell2010
    GHC-options:	-Wall -fno-warn-tabs
    Hs-source-dirs:	src-test
    Main-is:		Main.hs
    Type:		exitcode-stdio-1.0

-- Required for 'cabal sdist'.
    Other-modules:
        ToolShed.Test.HUnit.Data.List
        ToolShed.Test.QuickCheck.Data.Foldable
        ToolShed.Test.QuickCheck.Data.List
        ToolShed.Test.QuickCheck.Data.List.Runlength
        ToolShed.Test.QuickCheck.Data.List.Splits
        ToolShed.Test.QuickCheck.Data.Quadruple
        ToolShed.Test.QuickCheck.Data.Triple
        ToolShed.Test.QuickCheck.SelfValidate
        ToolShed.Test.QuickCheck.System.Random

    Build-depends:
        base == 4.*,
        containers >= 0.4.2.0,
        extra,
        HUnit,
        QuickCheck >= 2.2,
        random,
        toolshed

    if impl(ghc >= 8.0)
        GHC-options:	-j -Wredundant-constraints