From 987a7809bb5380db0c3507b58b9a4601b19567f7 Mon Sep 17 00:00:00 2001 From: "Niels G. W. Serup" Date: Sat, 21 Sep 2024 17:31:57 +0200 Subject: [PATCH] Split into library and executable --- byg/byg.cabal | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/byg/byg.cabal b/byg/byg.cabal index 7d051d9..2436f7c 100644 --- a/byg/byg.cabal +++ b/byg/byg.cabal @@ -13,15 +13,21 @@ common common ghc-options: -Wall default-language: GHC2024 -executable byg - import: common - main-is: Main.hs - other-modules: +library + import: common + hs-source-dirs: src + exposed-modules: Sources Functions ComputationM - hs-source-dirs: src build-depends: base , mtl , bytestring + +executable byg + import: common + main-is: src/Main.hs + build-depends: + base + , byg