aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-14 22:14:49 +0000
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-14 22:14:49 +0000
commit48390f18b6b5690f015291af83fafefd10c70f57 (patch)
tree775f83741d08c94b27e22bda80b52a0a64d24b34
parent20105cc9a88d25a55eadf4263fc426a373ee0429 (diff)
downloadthermoprint-48390f18b6b5690f015291af83fafefd10c70f57.tar
thermoprint-48390f18b6b5690f015291af83fafefd10c70f57.tar.gz
thermoprint-48390f18b6b5690f015291af83fafefd10c70f57.tar.bz2
thermoprint-48390f18b6b5690f015291af83fafefd10c70f57.tar.xz
thermoprint-48390f18b6b5690f015291af83fafefd10c70f57.zip
bbcode is orthogonal to thermoprint
-rw-r--r--bbcode/bbcode.cabal (renamed from bbcode/thermoprint-bbcode.cabal)6
-rw-r--r--bbcode/bbcode.nix (renamed from bbcode/thermoprint-bbcode.nix)4
-rw-r--r--default.nix6
-rw-r--r--spec/thermoprint-spec.cabal2
-rw-r--r--spec/thermoprint-spec.nix12
5 files changed, 17 insertions, 13 deletions
diff --git a/bbcode/thermoprint-bbcode.cabal b/bbcode/bbcode.cabal
index f25ffdf..d2f4932 100644
--- a/bbcode/thermoprint-bbcode.cabal
+++ b/bbcode/bbcode.cabal
@@ -1,9 +1,9 @@
1-- Initial thermoprint-bbcode.cabal generated by cabal init. For further 1-- Initial thermoprint-bbcode.cabal generated by cabal init. For further
2-- documentation, see http://haskell.org/cabal/users-guide/ 2-- documentation, see http://haskell.org/cabal/users-guide/
3 3
4name: thermoprint-bbcode 4name: bbcode
5version: 0.0.0 5version: 0.0.0
6synopsis: A parser for a subset of bbcode compatible with thermoprint-spec 6synopsis: A parser for bbcode
7-- description: 7-- description:
8homepage: http://dirty-haskell.org/tags/thermoprint.html 8homepage: http://dirty-haskell.org/tags/thermoprint.html
9license: PublicDomain 9license: PublicDomain
@@ -36,7 +36,7 @@ Test-Suite tests
36 main-is: Spec.hs 36 main-is: Spec.hs
37 ghc-options: -threaded -with-rtsopts=-N 37 ghc-options: -threaded -with-rtsopts=-N
38 build-depends: base >=4.8.1 && <5 38 build-depends: base >=4.8.1 && <5
39 , thermoprint-bbcode -any 39 , bbcode -any
40 , hspec >=2.2.1 && <3 40 , hspec >=2.2.1 && <3
41 , QuickCheck >=2.8.1 && <3 41 , QuickCheck >=2.8.1 && <3
42 , quickcheck-instances >=0.3.11 && <1 42 , quickcheck-instances >=0.3.11 && <1
diff --git a/bbcode/thermoprint-bbcode.nix b/bbcode/bbcode.nix
index 896bb04..82ba2f4 100644
--- a/bbcode/thermoprint-bbcode.nix
+++ b/bbcode/bbcode.nix
@@ -2,7 +2,7 @@
2, hspec, QuickCheck, quickcheck-instances, rosezipper, stdenv, text 2, hspec, QuickCheck, quickcheck-instances, rosezipper, stdenv, text
3}: 3}:
4mkDerivation { 4mkDerivation {
5 pname = "thermoprint-bbcode"; 5 pname = "bbcode";
6 version = "0.0.0"; 6 version = "0.0.0";
7 src = ./.; 7 src = ./.;
8 libraryHaskellDepends = [ 8 libraryHaskellDepends = [
@@ -12,6 +12,6 @@ mkDerivation {
12 attoparsec base hspec QuickCheck quickcheck-instances text 12 attoparsec base hspec QuickCheck quickcheck-instances text
13 ]; 13 ];
14 homepage = "http://dirty-haskell.org/tags/thermoprint.html"; 14 homepage = "http://dirty-haskell.org/tags/thermoprint.html";
15 description = "A parser for a subset of bbcode compatible with thermoprint-spec"; 15 description = "A parser for bbcode";
16 license = stdenv.lib.licenses.publicDomain; 16 license = stdenv.lib.licenses.publicDomain;
17} 17}
diff --git a/default.nix b/default.nix
index 40034c6..867ac5b 100644
--- a/default.nix
+++ b/default.nix
@@ -2,6 +2,8 @@
2}: 2}:
3 3
4rec { 4rec {
5 thermoprint-spec = pkgs.haskellPackages.callPackage ./spec/thermoprint-spec.nix {}; 5 thermoprint-spec = pkgs.haskellPackages.callPackage ./spec/thermoprint-spec.nix {
6 thermoprint-bbcode = pkgs.haskellPackages.callPackage ./bbcode/thermoprint-bbcode.nix {}; 6 inherit bbcode;
7 };
8 bbcode = pkgs.haskellPackages.callPackage ./bbcode/bbcode.nix {};
7} 9}
diff --git a/spec/thermoprint-spec.cabal b/spec/thermoprint-spec.cabal
index b9f7fd6..40978c3 100644
--- a/spec/thermoprint-spec.cabal
+++ b/spec/thermoprint-spec.cabal
@@ -19,6 +19,7 @@ cabal-version: >=1.10
19library 19library
20 hs-source-dirs: src 20 hs-source-dirs: src
21 exposed-modules: Thermoprint.Printout 21 exposed-modules: Thermoprint.Printout
22 , Thermoprint.Printout.BBCode
22 , Thermoprint.Identifiers 23 , Thermoprint.Identifiers
23 , Thermoprint.API 24 , Thermoprint.API
24 -- other-modules: 25 -- other-modules:
@@ -27,6 +28,7 @@ library
27 , DeriveAnyClass 28 , DeriveAnyClass
28 , OverloadedStrings 29 , OverloadedStrings
29 build-depends: base >=4.8.1 && <5 30 build-depends: base >=4.8.1 && <5
31 , bbcode -any
30 , containers >=0.5.6 && <1 32 , containers >=0.5.6 && <1
31 , text >=1.2.1 && <2 33 , text >=1.2.1 && <2
32 , bytestring >=0.10.6 && <1 34 , bytestring >=0.10.6 && <1
diff --git a/spec/thermoprint-spec.nix b/spec/thermoprint-spec.nix
index 2da5d86..368f3a9 100644
--- a/spec/thermoprint-spec.nix
+++ b/spec/thermoprint-spec.nix
@@ -1,15 +1,15 @@
1{ mkDerivation, aeson, base, base64-bytestring, bytestring, Cabal 1{ mkDerivation, aeson, base, base64-bytestring, bbcode, bytestring
2, cabal-test-quickcheck, containers, deepseq, encoding, hspec 2, Cabal, cabal-test-quickcheck, containers, deepseq, encoding
3, QuickCheck, quickcheck-instances, servant, stdenv, text 3, hspec, QuickCheck, quickcheck-instances, servant, stdenv, text
4}: 4}:
5mkDerivation { 5mkDerivation {
6 pname = "thermoprint-spec"; 6 pname = "thermoprint-spec";
7 version = "1.0.0"; 7 version = "1.0.0";
8 src = ./.; 8 src = ./.;
9 libraryHaskellDepends = [ 9 libraryHaskellDepends = [
10 aeson base base64-bytestring bytestring Cabal cabal-test-quickcheck 10 aeson base base64-bytestring bbcode bytestring Cabal
11 containers deepseq encoding QuickCheck quickcheck-instances servant 11 cabal-test-quickcheck containers deepseq encoding QuickCheck
12 text 12 quickcheck-instances servant text
13 ]; 13 ];
14 testHaskellDepends = [ 14 testHaskellDepends = [
15 aeson base hspec QuickCheck quickcheck-instances 15 aeson base hspec QuickCheck quickcheck-instances