packages feed

range-0.2.0.0: range.cabal

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

-- The name of the package.
name:                range

-- The package version.  See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary:      +-+------- breaking API changes
--                   | | +----- non-breaking API additions
--                   | | | +--- code changes with no API change
version:             0.2.0.0

-- A short (one-line) description of the package.
synopsis:            This has a bunch of code for specifying and managing ranges in your code.

-- A longer description of the package.
description:         range is built to allow you to use ranges in your code quickly and
                     efficiently. There are many occasions where you will want to check if
                     certain values are within a range and this library will make it
                     trivial for you to do so. It also attempts to do so in the most
                     efficient way possible.

homepage:            https://bitbucket.org/robertmassaioli/range

-- The license under which the package is released.
license:             MIT

-- The file containing the license text.
license-file:        LICENSE

-- The package author(s).
author:              Robert Massaioli

-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer:          robertmassaioli@gmail.com

-- A copyright notice.
-- copyright:

category:            Data

build-type:          Simple

-- Constraint on the version of Cabal needed to build this package.
cabal-version:       >=1.8


library
  -- Modules exported by the library.
  exposed-modules:    Data.Range.Range
                      , Data.Range.NestedRange
                      , Data.Range.RangeTree
                      , Data.Range.Parser
                      , Data.Range.Algebra

  -- Modules included in this library but not exported.
  other-modules:  Data.Range.Data
                  , Data.Range.RangeInternal
                  , Data.Range.Spans
                  , Data.Range.Util
                  , Data.Range.Algebra.Internal
                  , Data.Range.Algebra.Range
                  , Data.Range.Algebra.Predicate


  -- Other library packages from which modules are imported.
  build-depends:  base >= 4.5 && < 5
                  , parsec >= 3
                  , free >=4.12

  ghc-options: -Wall


Test-Suite test-range
   type:       exitcode-stdio-1.0
   main-is: Test/Range.hs
   other-modules: Test.RangeMerge
   build-depends: base                          >= 4.5 && < 5
                  , Cabal                       >= 1.14
                  , QuickCheck                  >= 2.4.0.1 && < 3
                  , test-framework-quickcheck2  >= 0.2 && < 0.4
                  , test-framework              >= 0.4 && < 0.9
                  , random                      >= 1.0
                  , range
   if impl(ghc < 8)
    build-depends: free >= 4.12 && < 5
   else
    build-depends: free >= 4.12
   ghc-options: -rtsopts -Wall -fno-enable-rewrite-rules