name:           map-syntax
version:        0.2.0.1
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
cabal-version:  >= 1.10
category:       Data Structures

extra-source-files:
  .ghci,
  LICENSE,
  README.md,
  runTestsAndCoverage.sh


Library
  hs-source-dirs: src
  default-language: Haskell2010

  exposed-modules:
    Data.Map.Syntax


  build-depends:
    base                       >= 4   && < 5,
    containers                 >= 0.3 && < 0.6,
    mtl                        >= 2.0 && < 2.3

  if impl(ghc >= 6.12.0)
    ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
                 -fno-warn-unused-do-bind
  else
    ghc-options: -Wall -fwarn-tabs -funbox-strict-fields


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
  build-depends:
    base                       >= 4        && < 5,
    containers                 >= 0.3      && < 0.6,
    deepseq                    >= 1.3      && < 2,
    HUnit                      >= 1.2      && < 2,
    mtl                        >= 2.0      && < 2.3,
    QuickCheck                 >= 2.3.0.2  && < 3,
    hspec                      >= 2.2.3    && < 2.3,
    transformers               >= 0.3      && < 0.6