summaryrefslogtreecommitdiff
path: root/dlist.cabal
blob: bfafb7271f11c083aade1c273220c7a0b8eb566b (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
cabal-version:          >= 1.10

name:                   dlist
version:                1.0
x-revision:             1

synopsis:               Difference lists
description:
  List-like types supporting O(1) append and snoc operations.
category:               Data
license:                BSD3
license-file:           license.md
author:                 Don Stewart
maintainer:             Sean Leather <sean.leather@gmail.com>
copyright:              2006-2009 Don Stewart, 2013-2020 Sean Leather, 2017-2020 Oleg Grenrus, contributors
homepage:               https://github.com/spl/dlist
bug-reports:            https://github.com/spl/dlist/issues
extra-source-files:     readme.md,
                        changelog.md
                        tests/ImportUnsafe.hs
build-type:             Simple

tested-with:
                        GHC == 9.8.0
                        GHC == 9.6.2
                        GHC == 9.4.7
                        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

source-repository head
  type:                 git
  location:             https://github.com/spl/dlist.git

flag Werror
  description:          Enable -Werror
  default:              False
  manual:               True

library
  build-depends:
                        base >= 4 && < 5,
                        deepseq >= 1.1 && < 1.6
  exposed-modules:      Data.DList
                        Data.DList.Unsafe
  other-modules:        Data.DList.Internal
  if impl(ghc >= 8.0)
    exposed-modules:    Data.DList.DNonEmpty
    other-modules:      Data.DList.DNonEmpty.Internal
  default-language:     Haskell2010
  ghc-options:          -Wall
  if impl(ghc >= 8.0)
    ghc-options:        -Wcompat
                        -Wincomplete-record-updates
                        -Wincomplete-uni-patterns
                        -Wnoncanonical-monad-instances
  if impl(ghc >= 8.2)
    ghc-options:        -Wmissing-home-modules
  if impl(ghc >= 8.4)
    ghc-options:        -Wpartial-fields
  if impl(ghc >= 8.10)
    ghc-options:        -Wmissing-safe-haskell-mode
                        -Wtrustworthy-safe
  if flag(Werror)
    ghc-options:        -Werror

test-suite test
  type:                 exitcode-stdio-1.0
  main-is:              Main.hs
  other-modules:        DListProperties
                        OverloadedStrings
                        QuickCheckUtil
  if impl(ghc >= 8.0)
    other-modules:      DNonEmptyProperties
  hs-source-dirs:       tests
  build-depends:        dlist,
                        base,
                        -- QuickCheck-2.10 is the first version supporting
                        -- base-4.9 (ghc-8) without the Arbitrary NonEmpty
                        -- instance, which we include ourselves.
                        QuickCheck >= 2.10 && < 2.15
  default-language:     Haskell2010
  ghc-options:          -Wall
  if impl(ghc >= 8.0)
    ghc-options:        -Wcompat
                        -Wincomplete-record-updates
                        -Wincomplete-uni-patterns
                        -Wnoncanonical-monad-instances
  if impl(ghc >= 8.2)
    ghc-options:        -Wmissing-home-modules
  if impl(ghc >= 8.4)
    ghc-options:        -Wpartial-fields
  if impl(ghc >= 8.10)
    ghc-options:        -Wmissing-safe-haskell-mode
                        -Wtrustworthy-safe
  if flag(Werror)
    ghc-options:        -Werror