File: remove-internal-library

package info (click to toggle)
haskell-attoparsec 0.14.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 868 kB
  • sloc: haskell: 4,749; ansic: 170; makefile: 22
file content (71 lines) | stat: -rw-r--r-- 2,403 bytes parent folder | download
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
Index: b/attoparsec.cabal
===================================================================
--- a/attoparsec.cabal
+++ b/attoparsec.cabal
@@ -32,26 +32,9 @@ Flag developer
   Default: False
   Manual: True
 
--- We need to test and benchmark these modules,
--- but do not want to expose them to end users
-library attoparsec-internal
-  hs-source-dirs: internal
-  build-depends: array,
-                 base >= 4.3 && < 5,
-                 bytestring <0.12,
-                 text >= 1.1.1.3
-  if !impl(ghc >= 8.0)
-    build-depends: semigroups >=0.16.1 && <0.21
-  exposed-modules: Data.Attoparsec.ByteString.Buffer
-                   Data.Attoparsec.ByteString.FastSet
-                   Data.Attoparsec.Internal.Compat
-                   Data.Attoparsec.Internal.Fhthagn
-                   Data.Attoparsec.Text.Buffer
-                   Data.Attoparsec.Text.FastSet
-  ghc-options: -O2 -Wall
-  default-language: Haskell2010
 
 library
+  hs-source-dirs: . , internal
   build-depends: array,
                  base >= 4.3 && < 5,
                  bytestring <0.12,
@@ -60,8 +43,7 @@ library
                  scientific >= 0.3.1 && < 0.4,
                  transformers >= 0.2 && (< 0.4 || >= 0.4.1.0) && < 0.7,
                  text >= 1.1.1.3,
-                 ghc-prim <0.9,
-                 attoparsec-internal
+                 ghc-prim <0.9
   if impl(ghc < 7.4)
     build-depends:
       bytestring < 0.10.4.0
@@ -85,6 +67,12 @@ library
                    Data.Attoparsec.Text.Lazy
                    Data.Attoparsec.Types
                    Data.Attoparsec.Zepto
+                   Data.Attoparsec.ByteString.Buffer
+                   Data.Attoparsec.ByteString.FastSet
+                   Data.Attoparsec.Internal.Compat
+                   Data.Attoparsec.Internal.Fhthagn
+                   Data.Attoparsec.Text.Buffer
+                   Data.Attoparsec.Text.FastSet
   other-modules:   Data.Attoparsec.ByteString.Internal
                    Data.Attoparsec.Text.Internal
   ghc-options: -O2 -Wall
@@ -120,7 +108,6 @@ test-suite attoparsec-tests
   build-depends:
     array,
     attoparsec,
-    attoparsec-internal,
     base,
     bytestring,
     deepseq >= 1.1,
@@ -167,7 +154,6 @@ benchmark attoparsec-benchmarks
   build-depends:
     array,
     attoparsec,
-    attoparsec-internal,
     base == 4.*,
     bytestring >= 0.10.4.0,
     case-insensitive,