packages feed

NaturalSort-0.2.1: NaturalSort.cabal

Name: NaturalSort
Version: 0.2.1
License: BSD3
License-File: COPYING
Copyright: (c) Joachim Fasting 2008-2010
Maintainer: Joachim Fasting <joachim.fasting@gmail.com>
Homepage: http://github.com/joachifm/natsort
Synopsis: Natural sorting for strings
Description: A library for sorting strings "naturally", i.e. taking numerical
    values into account when comparing textual inputs.
    .
    E.g., "1" < "10", and "10 bottles of beer" < "100 bottles of beer".
Category: Text
Tested-With: GHC == 6.12.1
Build-Type: Simple
Cabal-Version: >= 1.6 && < 1.9
Extra-Source-Files: README.md tests/Properties.hs tests/Unit.hs tests/Main.hs
    tests/coverage.lhs

Source-Repository head
    type: git
    location: git://github.com/joachifm/natsort.git

flag base3
    Description: Use base version 3
    Default: False

flag driver
    Description: Build driver program
    Default: False

flag no-lib
    Description: Do not build the library (just the driver)
    Default: False

flag test
    Description: Build test driver
    Default: False

flag coverage
    Description: Build with code coverage
    Default: False

Library
    Exposed-Modules: NaturalSort

    if flag(base3)
        Build-Depends: base >= 3 && < 4
    else
        Build-Depends: base >= 4 && < 5

    Build-Depends: bytestring >= 0.9 && < 1,
                   strict ==0.3.*

    if flag(no-lib) || flag(test)
        Buildable: False

Executable nsort
    Hs-Source-Dirs: .
    Main-Is: Main.hs
    Other-Modules: Chunk, NaturalSort

    if flag(base3)
        Build-Depends: base >= 3 && < 4
    else
        Build-Depends: base >= 4 && < 5

    Build-Depends: bytestring >= 0.9 && < 1,
                   strict ==0.3.*

    if flag(test) || (!flag(driver) && !flag(no-lib))
        Buildable: False

Executable test
    Hs-Source-Dirs: . tests
    Main-Is: tests/Main.hs
    Other-Modules: NaturalSort

    if flag(base3)
        Build-Depends: base >= 3 && < 4
    else
        Build-Depends: base >= 4 && < 5

    Build-Depends:
                   bytestring >= 0.9 && < 1,
                   QuickCheck >= 2.1 && < 3,
                   strict ==0.3.*
    ghc-options: -Wall -Werror -dcore-lint

    if flag(coverage)
        ghc-options: -fhpc

    if !flag(test)
        Buildable: False