Move lib:parsec source into own subfolder
authorHerbert Valerio Riedel <hvr@gnu.org>
Sat, 30 Dec 2017 10:20:03 +0000 (11:20 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sat, 30 Dec 2017 10:20:03 +0000 (11:20 +0100)
This makes it more uniform with the test-suite source folder
organisation, and makes sure the lib source doesn't accidentally leak
into the test-suite component.

26 files changed:
parsec.cabal
src/Text/Parsec.hs [moved from Text/Parsec.hs with 100% similarity]
src/Text/Parsec/ByteString.hs [moved from Text/Parsec/ByteString.hs with 100% similarity]
src/Text/Parsec/ByteString/Lazy.hs [moved from Text/Parsec/ByteString/Lazy.hs with 100% similarity]
src/Text/Parsec/Char.hs [moved from Text/Parsec/Char.hs with 100% similarity]
src/Text/Parsec/Combinator.hs [moved from Text/Parsec/Combinator.hs with 100% similarity]
src/Text/Parsec/Error.hs [moved from Text/Parsec/Error.hs with 100% similarity]
src/Text/Parsec/Expr.hs [moved from Text/Parsec/Expr.hs with 100% similarity]
src/Text/Parsec/Language.hs [moved from Text/Parsec/Language.hs with 100% similarity]
src/Text/Parsec/Perm.hs [moved from Text/Parsec/Perm.hs with 100% similarity]
src/Text/Parsec/Pos.hs [moved from Text/Parsec/Pos.hs with 100% similarity]
src/Text/Parsec/Prim.hs [moved from Text/Parsec/Prim.hs with 100% similarity]
src/Text/Parsec/String.hs [moved from Text/Parsec/String.hs with 100% similarity]
src/Text/Parsec/Text.hs [moved from Text/Parsec/Text.hs with 100% similarity]
src/Text/Parsec/Text/Lazy.hs [moved from Text/Parsec/Text/Lazy.hs with 100% similarity]
src/Text/Parsec/Token.hs [moved from Text/Parsec/Token.hs with 100% similarity]
src/Text/ParserCombinators/Parsec.hs [moved from Text/ParserCombinators/Parsec.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Char.hs [moved from Text/ParserCombinators/Parsec/Char.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Combinator.hs [moved from Text/ParserCombinators/Parsec/Combinator.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Error.hs [moved from Text/ParserCombinators/Parsec/Error.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Expr.hs [moved from Text/ParserCombinators/Parsec/Expr.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Language.hs [moved from Text/ParserCombinators/Parsec/Language.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Perm.hs [moved from Text/ParserCombinators/Parsec/Perm.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Pos.hs [moved from Text/ParserCombinators/Parsec/Pos.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Prim.hs [moved from Text/ParserCombinators/Parsec/Prim.hs with 100% similarity]
src/Text/ParserCombinators/Parsec/Token.hs [moved from Text/ParserCombinators/Parsec/Token.hs with 100% similarity]

index 4d0411d..12f5f61 100644 (file)
@@ -28,6 +28,7 @@ source-repository head
     location: https://github.com/haskell/parsec
 
 library
+    hs-source-dirs: src
     exposed-modules:
         Text.Parsec
         Text.Parsec.String
@@ -82,10 +83,10 @@ library
         build-depends: fail == 4.9.*
 
 test-suite parsec
-    default-language: Haskell2010
-    type:        exitcode-stdio-1.0
-    hs-source-dirs:  test
-    main-is:     Main.hs
+    type: exitcode-stdio-1.0
+
+    hs-source-dirs: test
+    main-is: Main.hs
     other-modules:
         Bugs
         Bugs.Bug2
@@ -102,6 +103,8 @@ test-suite parsec
         test-framework       >= 0.6 && < 0.9,
         test-framework-hunit >= 0.2 && < 0.4
 
+    default-language: Haskell2010
+
     ghc-options: -Wall
     if impl(ghc >= 8.0)
         ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
similarity index 100%
rename from Text/Parsec.hs
rename to src/Text/Parsec.hs
similarity index 100%
rename from Text/Parsec/Char.hs
rename to src/Text/Parsec/Char.hs
similarity index 100%
rename from Text/Parsec/Expr.hs
rename to src/Text/Parsec/Expr.hs
similarity index 100%
rename from Text/Parsec/Perm.hs
rename to src/Text/Parsec/Perm.hs
similarity index 100%
rename from Text/Parsec/Pos.hs
rename to src/Text/Parsec/Pos.hs
similarity index 100%
rename from Text/Parsec/Prim.hs
rename to src/Text/Parsec/Prim.hs
similarity index 100%
rename from Text/Parsec/Text.hs
rename to src/Text/Parsec/Text.hs