1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
cabal-version: >= 1.10
name: map-syntax
version: 0.3
x-revision: 8
synopsis: Syntax sugar for defining maps
description:
Haskell's canonical list of tuples syntax for defining maps is not very
convenient and also has ambiguous semantics. This package leverages do
notation to create a lighter syntax that makes semantics explicit and also
allows the option of fail-fast handling of duplicate keys.
license: BSD3
license-file: LICENSE
author: Doug Beardsley
maintainer: mightybyte@gmail.com
build-type: Simple
category: Data Structures
Tested-With:
GHC == 9.6.2
GHC == 9.4.5
GHC == 9.2.8
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.2.2
GHC == 7.0.4
extra-source-files:
.ghci,
LICENSE,
README.md,
runCoverage.sh
Library
hs-source-dirs: src
default-language: Haskell2010
exposed-modules:
Data.Map.Syntax
build-depends:
base >= 4.3 && < 5,
containers >= 0.3 && < 1,
mtl >= 2.0 && < 2.4
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -fno-warn-unused-do-bind
-- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
else
build-depends: semigroups == 0.18.*
source-repository head
type: git
location: https://github.com/mightybyte/map-syntax.git
Test-suite testsuite
hs-source-dirs: src test
type: exitcode-stdio-1.0
main-is: TestSuite.hs
other-modules: Data.Map.Syntax
, Data.Map.Syntax.Util
, Data.Map.Syntax.Tests
default-language: Haskell2010
ghc-options: -Wall -fwarn-tabs
-- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
else
build-depends: semigroups == 0.18.*
build-depends:
base,
containers,
deepseq >= 1.3 && < 2,
HUnit >= 1.2 && < 2,
mtl,
QuickCheck >= 2.3.0.2 && < 3,
hspec >= 2.2.3 && < 2.12,
transformers >= 0.3 && < 0.7
|