packages feed

numhask-space-0.11.1.0: numhask-space.cabal

cabal-version: 3.0
name: numhask-space
version: 0.11.1.0
license: BSD-3-Clause
license-file: LICENSE
copyright: Tony Day (c) 2016
category: math
author: Tony Day
maintainer: tonyday567@gmail.com
homepage: https://github.com/tonyday567/numhask-space#readme
bug-reports: https://github.com/tonyday567/numhask-space/issues
synopsis: Numerical spaces.
description:
    @numhask-space@ provides support for spaces where [space](https://en.wikipedia.org/wiki/Space_(mathematics\)) is defined as a set of numbers with a lower and upper bound.

    == Usage

    >>> {-# LANGUAGE RebindableSyntax #-}
    >>> import NumHask.Prelude
    >>> import NumHask.Space


build-type: Simple
tested-with: GHC ==8.10.7 || ==9.2.8 || ==9.4.5 || ==9.6.2
extra-doc-files: ChangeLog.md

source-repository head
    type: git
    location: https://github.com/tonyday567/numhask-space

common ghc-options-stanza
    ghc-options:
        -Wall
        -Wcompat
        -Widentities
        -Wincomplete-record-updates
        -Wincomplete-uni-patterns
        -Wpartial-fields
        -Wredundant-constraints

common ghc2021-stanza
    if impl ( ghc >= 9.2 )
        default-language: GHC2021

    if impl ( ghc < 9.2 )
        default-language: Haskell2010
        default-extensions:
            BangPatterns
            BinaryLiterals
            ConstrainedClassMethods
            ConstraintKinds
            DeriveDataTypeable
            DeriveFoldable
            DeriveFunctor
            DeriveGeneric
            DeriveLift
            DeriveTraversable
            DoAndIfThenElse
            EmptyCase
            EmptyDataDecls
            EmptyDataDeriving
            ExistentialQuantification
            ExplicitForAll
            FlexibleContexts
            FlexibleInstances
            ForeignFunctionInterface
            GADTSyntax
            GeneralisedNewtypeDeriving
            HexFloatLiterals
            ImplicitPrelude
            InstanceSigs
            KindSignatures
            MonomorphismRestriction
            MultiParamTypeClasses
            NamedFieldPuns
            NamedWildCards
            NumericUnderscores
            PatternGuards
            PolyKinds
            PostfixOperators
            RankNTypes
            RelaxedPolyRec
            ScopedTypeVariables
            StandaloneDeriving
            StarIsType
            TraditionalRecordSyntax
            TupleSections
            TypeApplications
            TypeOperators
            TypeSynonymInstances

    if impl ( ghc < 9.2 ) && impl ( ghc >= 8.10 )
        default-extensions:
            ImportQualifiedPost
            StandaloneKindSignatures

library
    import: ghc-options-stanza
    import: ghc2021-stanza
    hs-source-dirs: src
    build-depends:
        , adjunctions   >=4.0 && <5
        , base          >=4.7 && <5
        , containers    >=0.6 && <0.8
        , distributive  >=0.4 && <0.7
        , numhask       >=0.10 && <0.13
        , random        >=1.2 && <1.3
        , semigroupoids >=5.3 && <6.1
        , tdigest       >=0.2.1 && <0.4
        , text          >=1.2 && <2.2
        , time          >=1.9.1 && <1.13
        , vector        >=0.12.3 && <0.14
    exposed-modules:
        NumHask.Space
        NumHask.Space.Histogram
        NumHask.Space.Point
        NumHask.Space.Range
        NumHask.Space.Rect
        NumHask.Space.Time
        NumHask.Space.Types