packages feed

dimensions-2.1.0.0: dimensions.cabal

cabal-version: 1.24

-- This file has been generated from package.yaml by hpack version 0.31.1.
--
-- see: https://github.com/sol/hpack
--
-- hash: 02a12f73c300d1f3b4ea569d86f2222327243c0918b00236786ba647754dd7f2

name:           dimensions
version:        2.1.0.0
synopsis:       Safe type-level dimensionality for multidimensional data.
description:    Safe type-level dimensionality for multidimensional data. Please see the README on GitHub at <https://github.com/achirkin/easytensor#readme>
category:       math, geometry
homepage:       https://github.com/achirkin/easytensor#readme
bug-reports:    https://github.com/achirkin/easytensor/issues
author:         Artem Chirkin
maintainer:     achirkin@users.noreply.github.com
copyright:      Copyright: (c) 2019 Artem Chirkin
license:        BSD3
license-file:   LICENSE
build-type:     Custom

source-repository head
  type: git
  location: https://github.com/achirkin/easytensor
  subdir: dimensions

custom-setup
  setup-depends:
      Cabal
    , base

flag unsafeindices
  description: Disable bound checks on Idx and Idxs types.
  manual: True
  default: False

library
  exposed-modules:
      Data.Type.List
      Data.Type.Lits
      Numeric.Dimensions
      Numeric.Dimensions.Dim
      Numeric.Dimensions.Idx
      Numeric.Tuple
      Numeric.Tuple.Lazy
      Numeric.Tuple.Strict
      Numeric.TypedList
  other-modules:
      Data.Type.List.Families
      Data.Type.List.Classes
      Data.Type.List.Internal
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Wtabs -Wmissing-local-signatures -Wmissing-home-modules -Widentities
  build-depends:
      base >=4.10 && <5
    , constraints-deriving >=1.1.1.0 && <2
  if flag(unsafeindices)
    cpp-options: -DUNSAFE_INDICES
  default-language: Haskell2010

test-suite dimensions-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Data.Type.ListTest
      Numeric.Dimensions.DimTest
      Numeric.Dimensions.IdxTest
      Paths_dimensions
  hs-source-dirs:
      test
  ghc-options: -Wall -Wcompat -Wtabs -Wmissing-local-signatures -Wmissing-home-modules -Widentities
  build-depends:
      Cabal
    , QuickCheck
    , base
    , constraints-deriving >=1.1.1.0 && <2
    , dimensions
  default-language: Haskell2010