@@ -24,9 +24,11 @@ library
24
24
base >= 4.5 && < 4.11
25
25
, bytestring >= 0.9.2.1 && < 0.11
26
26
, transformers >= 0.3.0 && < 0.6
27
- , deepseq >= 1.3 && < 1.5
28
27
29
- hs-source-dirs : src, vendor/attoparsec-0.13.1.0
28
+ -- internal sub-lib
29
+ build-depends : attoparsec
30
+
31
+ hs-source-dirs : src
30
32
ghc-options : -funbox-strict-fields -Wall -fwarn-tabs -O2
31
33
32
34
exposed-modules :
@@ -37,48 +39,61 @@ library
37
39
Documentation.Haddock.Utf8
38
40
39
41
other-modules :
40
- Data.Attoparsec
42
+ Documentation.Haddock.Parser.Util
43
+
44
+ ghc-options : -Wall
45
+ if impl(ghc >= 8.0 )
46
+ ghc-options : -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
47
+
48
+ library attoparsec
49
+ default-language : Haskell2010
50
+
51
+ build-depends :
52
+ base >= 4.5 && < 4.11
53
+ , bytestring >= 0.9.2.1 && < 0.11
54
+ , deepseq >= 1.3 && < 1.5
55
+
56
+ hs-source-dirs : vendor/attoparsec-0.13.1.0
57
+
58
+ -- NB: haddock-library needs only small part of lib:attoparsec
59
+ -- internally, so we only bundle that subset here
60
+ exposed-modules :
41
61
Data.Attoparsec.ByteString
42
- Data.Attoparsec.ByteString.Buffer
43
62
Data.Attoparsec.ByteString.Char8
63
+
64
+ other-modules :
65
+ Data.Attoparsec
66
+ Data.Attoparsec.ByteString.Buffer
44
67
Data.Attoparsec.ByteString.FastSet
45
68
Data.Attoparsec.ByteString.Internal
46
69
Data.Attoparsec.Combinator
47
70
Data.Attoparsec.Internal
48
71
Data.Attoparsec.Internal.Fhthagn
49
72
Data.Attoparsec.Internal.Types
50
73
Data.Attoparsec.Number
51
- Documentation.Haddock.Parser.Util
74
+
75
+ ghc-options : -funbox-strict-fields -Wall -fwarn-tabs -O2
52
76
53
77
ghc-options : -Wall
54
78
if impl(ghc >= 8.0 )
55
79
ghc-options : -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
56
80
else
57
81
build-depends : semigroups ^>= 0.18.3 , fail ^>= 4.9.0.0
58
82
83
+
59
84
test-suite spec
60
85
type : exitcode-stdio-1.0
61
86
default-language : Haskell2010
62
87
main-is : Spec.hs
63
88
hs-source-dirs :
64
89
test
65
90
, src
66
- , vendor/attoparsec-0.13.1.0
67
91
ghc-options : -Wall
68
92
69
93
cpp-options :
70
94
-DTEST
71
95
72
96
other-modules :
73
- Data.Attoparsec.ByteString
74
- Data.Attoparsec.ByteString.Buffer
75
- Data.Attoparsec.ByteString.Char8
76
- Data.Attoparsec.ByteString.FastSet
77
- Data.Attoparsec.ByteString.Internal
78
- Data.Attoparsec.Combinator
79
- Data.Attoparsec.Internal
80
- Data.Attoparsec.Internal.Fhthagn
81
- Data.Attoparsec.Internal.Types
82
97
Documentation.Haddock.Doc
83
98
Documentation.Haddock.Parser
84
99
Documentation.Haddock.Parser.Monad
@@ -89,18 +104,24 @@ test-suite spec
89
104
Documentation.Haddock.Utf8
90
105
Documentation.Haddock.Utf8Spec
91
106
107
+ build-depends :
108
+ base-compat ^>= 0.9.3
109
+ , transformers >= 0.3.0 && < 0.6
110
+ , hspec ^>= 2.4.4
111
+ , QuickCheck ^>= 2.10
112
+
113
+ -- internal sub-lib
114
+ build-depends : attoparsec
115
+
116
+ -- Versions for the dependencies below are transitively pinned by
117
+ -- dependency on haddock-library:lib:attoparsec
92
118
build-depends :
93
119
base
94
120
, bytestring
95
- , transformers
96
121
, deepseq
97
122
98
- , base-compat
99
- , hspec
100
- , QuickCheck == 2. *
101
-
102
123
build-tool-depends :
103
- hspec-discover :hspec-discover
124
+ hspec-discover :hspec-discover ^ >= 2.4.4
104
125
105
126
source-repository head
106
127
type : git
0 commit comments