packages feed

numhask-0.12.0.1: numhask.cabal

cabal-version: 3.0
name: numhask
version: 0.12.0.1
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#readme
bug-reports: https://github.com/tonyday567/numhask/issues
synopsis: A numeric class hierarchy.
description:
    This package provides alternative numeric classes over Prelude.

    The numeric class constellation looks somewhat like:

    ![nh](docs/other/nh12.svg)

    == Usage

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

    See "NumHask" for a detailed overview.

build-type: Simple
tested-with:
    GHC ==9.4.8 || ==9.6.4 || ==9.8.1
extra-doc-files:
    ChangeLog.md
    other/*.svg

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

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

common ghc2021-stanza
    default-language: GHC2021

common docspec
    x-docspec-extra-packages: QuickCheck
    build-depends: QuickCheck >= 2.14 && < 2.15

library
    import: ghc-options-stanza
    import: ghc2021-stanza
    import: docspec
    hs-source-dirs: src
    build-depends:
        , base       >=4.7 && <5
    exposed-modules:
        NumHask
        NumHask.Algebra.Action
        NumHask.Algebra.Additive
        NumHask.Algebra.Field
        NumHask.Algebra.Group
        NumHask.Algebra.Lattice
        NumHask.Algebra.Metric
        NumHask.Algebra.Multiplicative
        NumHask.Algebra.Ring
        NumHask.Data.Complex
        NumHask.Data.Integral
        NumHask.Data.Positive
        NumHask.Data.Rational
        NumHask.Data.Wrapped
        NumHask.Exception
        NumHask.Prelude
    default-extensions: RebindableSyntax