aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2023-01-25 08:37:54 +1100
committerJustin Bedo <cu@cua0.org>2023-01-25 10:14:56 +1100
commitc7059c4d7309f1371f5acf8398b4adb4f2f33881 (patch)
treec833415aab3f905db682710fcf2918ffeb474172
parentd75b9577bda1e2c629dc9a9f63ee5846231e110d (diff)
separate dot drawing into standalone program
-rw-r--r--bin/draw.hs3
-rw-r--r--flake.nix2
-rw-r--r--package.yaml31
-rw-r--r--phylogenies.cabal13
4 files changed, 35 insertions, 14 deletions
diff --git a/bin/draw.hs b/bin/draw.hs
new file mode 100644
index 0000000..b41c778
--- /dev/null
+++ b/bin/draw.hs
@@ -0,0 +1,3 @@
+module Main where
+
+main = undefined
diff --git a/flake.nix b/flake.nix
index 19f161d..9ba6891 100644
--- a/flake.nix
+++ b/flake.nix
@@ -35,5 +35,5 @@
};
flake = pkgs.phylogenies.flake {};
in
- flake // {packages.default = flake.packages."phylogenies:exe:phylogenies";});
+ flake // {packages.default = flake.packages."phylogenies:exe:cluster"; packages.draw = flake.packages."phylogenies:exe:draw";});
}
diff --git a/package.yaml b/package.yaml
index 45e1f72..aa823e9 100644
--- a/package.yaml
+++ b/package.yaml
@@ -4,15 +4,22 @@ synopsis: phylogeny inferencing
maintainer: Justin Bedo <cu@cua0.org>
license: MIT
-executable:
- main: cluster.hs
- source-dirs: bin
- ghc-options: [-rtsopts]
- dependencies:
- - base >= 4.9 && < 5
- - ppl
- - containers
- - log-domain
- - random
- - optparse-applicative
- - ghc-compact
+executables:
+ cluster:
+ main: cluster.hs
+ source-dirs: bin
+ ghc-options: [-rtsopts]
+ dependencies:
+ - base >= 4.9 && < 5
+ - ppl
+ - containers
+ - log-domain
+ - random
+ - optparse-applicative
+ - ghc-compact
+ draw:
+ main: draw.hs
+ source-dirs: bin
+ ghc-options: [-rtsopts]
+ dependencies:
+ - base >= 4.9 && < 5
diff --git a/phylogenies.cabal b/phylogenies.cabal
index 22d5728..f2c776f 100644
--- a/phylogenies.cabal
+++ b/phylogenies.cabal
@@ -12,7 +12,7 @@ license: MIT
license-file: LICENSE
build-type: Simple
-executable phylogenies
+executable cluster
main-is: cluster.hs
other-modules:
Paths_phylogenies
@@ -28,3 +28,14 @@ executable phylogenies
, ppl
, random
default-language: Haskell2010
+
+executable draw
+ main-is: draw.hs
+ other-modules:
+ Paths_phylogenies
+ hs-source-dirs:
+ bin
+ ghc-options: -rtsopts
+ build-depends:
+ base >=4.9 && <5
+ default-language: Haskell2010