From c7059c4d7309f1371f5acf8398b4adb4f2f33881 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Wed, 25 Jan 2023 08:37:54 +1100 Subject: separate dot drawing into standalone program --- bin/draw.hs | 3 +++ flake.nix | 2 +- package.yaml | 31 +++++++++++++++++++------------ phylogenies.cabal | 13 ++++++++++++- 4 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 bin/draw.hs 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 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 -- cgit v1.2.3