packages feed

regexchar-0.9.0.13: regexchar.cabal

-- This file is part of RegExChar.
--
-- RegExChar 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.
--
-- RegExChar 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 RegExChar.  If not, see <http://www.gnu.org/licenses/>.

Name:		regexchar
Version:	0.9.0.13
Cabal-version:	>= 1.10
Copyright:	(C) 2010-2015 Dr. Alistair Ward
License:	GPL
License-file:	LICENSE
Author:		Dr. Alistair Ward
Stability:	stable
Synopsis:	A POSIX, extended regex-engine.
Build-type:	Simple
Description:	Provides a POSIX, extended regex-engine, specialised from the underlying /polymorphic/ package /regexdot/, to merely process the traditional character-lists.
Category:	Regex, Text
Tested-with:	GHC == 6.10, GHC == 6.12, GHC == 7.0, GHC == 7.4, GHC == 7.6, GHC == 7.8, GHC == 7.10
Homepage:	http://functionalley.eu/RegExChar/regExChar.html
Maintainer:	mailto <colon> regexchar <at> functionalley <dot> eu
Bug-reports:	mailto <colon> regexchar <at> functionalley <dot> eu

-- These files can be read by the application from 'Paths_weekdaze.datadir'.
Data-files:
    data/*.txt

-- None of these files are needed at run-time.
Extra-source-files:
    changelog.Debian
    changelog.markdown
    copyright
    debian/DEBIAN/control
    man/man1/grecce.1
    README.markdown
    regexchar.spec

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

flag threaded
    Description:	Link with the threaded runtime.
    Manual:		True
    Default:		True

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

    Exposed-modules:
        RegExChar.ExtendedRegExChar
        RegExChar.MetaChar
        RegExChar.RegExOptsChar

    Build-depends:
        array,
        base == 4.*,
        containers,
        parsec == 3.*,
        regex-base,
        regexdot >= 0.11.1.0,
        toolshed >= 0.16

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

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

Executable grecce
    Default-language:	Haskell2010
    GHC-options:	-Wall -O2 -fno-warn-tabs
    GHC-prof-options:	-prof -auto-all -caf-all
    Hs-source-dirs:	src-exe
    Main-is:		Main.hs

-- Required for 'cabal sdist'.
    Other-modules:
        Grecce.CommandOptions
        Grecce.Grep
        Grecce.Test.Assert.RegExOptsChar
        Grecce.Test.Performance.ExtendedRegEx
        Grecce.Test.Performance.ExtendedRegExTest
        Grecce.Test.Performance.ExtendedRegExTestsNegative
        Grecce.Test.Performance.ExtendedRegExTestsPositive

    Build-depends:
        base == 4.*,
        Cabal >= 1.10,
        parallel >= 3.0,
        regexchar,
        regex-base,
        regex-posix,
        regexdot >= 0.11.1.0,
        toolshed >= 0.16

    if flag(threaded)
        GHC-options:	-threaded

    if impl(ghc >= 7.0)
        GHC-options:	-rtsopts

        if flag(llvm)
            GHC-options:	-fllvm

Test-Suite quickCheck
    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:
        Grecce.Test.QC.ExtendedRegExChar
        Grecce.Test.QC.MetaChar
        Grecce.Test.QC.RepeatableMetaChar

    Build-depends:
        base == 4.*,
        QuickCheck >= 2.4,
        regexchar,
        regexdot >= 0.11.1.0,
        toolshed >= 0.16