packages feed

dlist-nonempty-0.1.1: dlist-nonempty.cabal

name:                   dlist-nonempty
version:                0.1.1
synopsis:               Non-empty difference lists
description:
  Difference lists are a list-like type supporting O(1) append. This is
  particularly useful for efficient logging and pretty printing (e.g. with the
  Writer monad), where list append quickly becomes too expensive.
  .
  > DList a         ≅ [a] -> [a]
  > NonEmptyDList a ≅ [a] -> NonEmpty a
  .
  For empty variant, @DList@, see <http://hackage.haskell.org/package/dlist dlist package>.
category:               Data
license:                BSD3
license-file:           LICENSE
author:                 Don Stewart, Oleg  Grenrus
maintainer:             Oleg Grenrus <oleg.grenrus@iki.fi>
copyright:              2006-2009 Don Stewart, 2013-2016 Sean Leather, 2017 Oleg Grenrus
homepage:               https://github.com/phadej/dlist-nonempty
bug-reports:            https://github.com/phadej/dlist-nonempty/issues
extra-source-files:     README.md CHANGELOG.md
build-type:             Simple
cabal-version:          >=1.10
tested-with:
  GHC==7.4.2,
  GHC==7.6.3,
  GHC==7.8.4,
  GHC==7.10.3,
  GHC==8.0.2,
  GHC==8.2.1

source-repository head
  type:                 git
  location:             git://github.com/phadej/dlist-nonempty.git

library
  default-language:     Haskell2010
  hs-source-dirs:       src
  build-depends:
                        base          >=4.5   && <4.11,
                        base-compat   >=0.9.1 && <0.10,
                        deepseq       >=1.1   && <2,
                        dlist         >=0.8   && <0.9,
                        semigroupoids >=5.1   && <5.3
  if !impl(ghc >= 8.0)
    build-depends:
                        semigroups >=0.18.2 && <0.19
  other-extensions:     CPP
  exposed-modules:      Data.DList.NonEmpty
                        Data.DList.NonEmpty.Unsafe
  other-modules:        Data.DList.NonEmpty.Internal
  ghc-options:          -Wall
  if impl(ghc >= 8.0)
    ghc-options:        -Wcompat

test-suite test
  default-language:     Haskell2010
  type:                 exitcode-stdio-1.0
  main-is:              Main.hs
  hs-source-dirs:       tests
  other-modules:        OverloadedStrings
  build-depends:        dlist-nonempty,
                        base,
                        Cabal,
                        QuickCheck >= 2.9 && < 2.11,
                        quickcheck-instances
  if !impl(ghc >= 8.0)
    build-depends:
                        semigroups >=0.18.2 && <0.19

benchmark bench
  default-language:     Haskell2010
  type:                 exitcode-stdio-1.0
  main-is:              Main.hs
  hs-source-dirs:       bench
  build-depends:        base,
                        base-compat,
                        dlist,
                        dlist-nonempty,
                        dlist-instances,
                        criterion >= 1.1.4.0 && <1.3
  if !impl(ghc >= 8.0)
    build-depends:
                        semigroups >=0.18.2 && <0.19