Skip to content

Commit

Permalink
Merge pull request #18 from qfpl/no-more-doctests
Browse files Browse the repository at this point in the history
No more doctests
  • Loading branch information
tonymorris authored Oct 11, 2017
2 parents e268ed8 + a64e335 commit 9752ec3
Show file tree
Hide file tree
Showing 102 changed files with 155 additions and 2,056 deletions.
2 changes: 2 additions & 0 deletions papa-base-export/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain
44 changes: 0 additions & 44 deletions papa-base-export/Setup.lhs

This file was deleted.

9 changes: 2 additions & 7 deletions papa-base-export/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{ mkDerivation, base, directory, doctest, filepath, QuickCheck
, semigroups, stdenv, template-haskell
}:
{ mkDerivation, base, semigroups, stdenv }:
mkDerivation {
pname = "papa-base-export";
version = "0.3.0";
version = "0.3.1";
src = ./.;
libraryHaskellDepends = [ base semigroups ];
testHaskellDepends = [
base directory doctest filepath QuickCheck template-haskell
];
homepage = "https://github.com/qfpl/papa";
description = "Prelude with only useful functions";
license = stdenv.lib.licenses.bsd3;
Expand Down
29 changes: 2 additions & 27 deletions papa-base-export/papa-base-export.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: papa-base-export
version: 0.3.0
version: 0.3.1
license: BSD3
license-file: LICENCE
author: Queensland Functional Programming Lab <oᴉ˙ldɟb@llǝʞsɐɥ>
Expand All @@ -14,7 +14,7 @@ description:
homepage: https://github.com/qfpl/papa
bug-reports: https://github.com/qfpl/papa/issues
cabal-version: >= 1.10
build-type: Custom
build-type: Simple
extra-source-files: changelog.md

source-repository head
Expand Down Expand Up @@ -65,28 +65,3 @@ library
Papa.Base.Export.Data.Traversable
Papa.Base.Export.Data.Void
Papa.Base.Export.Prelude

test-suite doctests
type:
exitcode-stdio-1.0

main-is:
doctests.hs

default-language:
Haskell2010

build-depends:
base < 5 && >= 3
, doctest >= 0.9.7
, filepath >= 1.3
, directory >= 1.1
, QuickCheck >= 2.0
, template-haskell >= 2.8

ghc-options:
-Wall
-threaded

hs-source-dirs:
test
8 changes: 0 additions & 8 deletions papa-base-export/test/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions papa-base-export/test/doctests.hs

This file was deleted.

2 changes: 2 additions & 0 deletions papa-base-implement/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain
44 changes: 0 additions & 44 deletions papa-base-implement/Setup.lhs

This file was deleted.

10 changes: 2 additions & 8 deletions papa-base-implement/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{ mkDerivation, base, directory, doctest, filepath
, papa-base-export, QuickCheck, semigroups, stdenv
, template-haskell
}:
{ mkDerivation, base, papa-base-export, semigroups, stdenv }:
mkDerivation {
pname = "papa-base-implement";
version = "0.3.0";
version = "0.3.1";
src = ./.;
libraryHaskellDepends = [ base papa-base-export semigroups ];
testHaskellDepends = [
base directory doctest filepath QuickCheck template-haskell
];
homepage = "https://github.com/qfpl/papa";
description = "Useful base functions reimplemented";
license = stdenv.lib.licenses.bsd3;
Expand Down
31 changes: 3 additions & 28 deletions papa-base-implement/papa-base-implement.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: papa-base-implement
version: 0.3.0
version: 0.3.1
license: BSD3
license-file: LICENCE
author: Queensland Functional Programming Lab <oᴉ˙ldɟb@llǝʞsɐɥ>
Expand All @@ -14,7 +14,7 @@ description:
homepage: https://github.com/qfpl/papa
bug-reports: https://github.com/qfpl/papa/issues
cabal-version: >= 1.10
build-type: Custom
build-type: Simple
extra-source-files: changelog.md

source-repository head
Expand All @@ -31,7 +31,7 @@ library
build-depends:
base >= 4.8 && < 5
, semigroups >= 0.18
, papa-base-export >= 0.3.0 && < 1
, papa-base-export >= 0.3.1 && < 1

ghc-options:
-Wall
Expand All @@ -52,28 +52,3 @@ library
Papa.Base.Implement.Data.List
Papa.Base.Implement.Data.Monoid
Papa.Base.Implement.Data.Traversable

test-suite doctests
type:
exitcode-stdio-1.0

main-is:
doctests.hs

default-language:
Haskell2010

build-depends:
base < 5 && >= 3
, doctest >= 0.9.7
, filepath >= 1.3
, directory >= 1.1
, QuickCheck >= 2.0
, template-haskell >= 2.8

ghc-options:
-Wall
-threaded

hs-source-dirs:
test
8 changes: 0 additions & 8 deletions papa-base-implement/test/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions papa-base-implement/test/doctests.hs

This file was deleted.

2 changes: 2 additions & 0 deletions papa-base/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain
44 changes: 0 additions & 44 deletions papa-base/Setup.lhs

This file was deleted.

9 changes: 2 additions & 7 deletions papa-base/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{ mkDerivation, base, directory, doctest, filepath
, papa-base-export, papa-base-implement, QuickCheck, stdenv
, template-haskell
{ mkDerivation, base, papa-base-export, papa-base-implement, stdenv
}:
mkDerivation {
pname = "papa-base";
version = "0.3.0";
version = "0.3.1";
src = ./.;
libraryHaskellDepends = [
base papa-base-export papa-base-implement
];
testHaskellDepends = [
base directory doctest filepath QuickCheck template-haskell
];
homepage = "https://github.com/qfpl/papa";
description = "Prelude with only useful functions";
license = stdenv.lib.licenses.bsd3;
Expand Down
Loading

0 comments on commit 9752ec3

Please sign in to comment.