X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=advent-of-code22.cabal;h=747359d0c08c179c481be8d304e0a245198c9468;hb=91da51ec3e425f6cf66771af48cccdb98ea08a38;hp=f258fd83010009e0221bede630d572d28eda5ba9;hpb=99f068fe6961279ce639195448889db6f967e623;p=advent-of-code-22.git diff --git a/advent-of-code22.cabal b/advent-of-code22.cabal index f258fd8..747359d 100644 --- a/advent-of-code22.cabal +++ b/advent-of-code22.cabal @@ -73,6 +73,8 @@ common common-extensions common build-directives build-depends: base >=4.16 default-language: Haskell2010 + hs-source-dirs: ., app, lib + other-modules: AoC ghc-options: -O2 -Wall -threaded @@ -87,9 +89,15 @@ executable advent-of-code22 -- LANGUAGE extensions used by modules in this package. -- other-extensions: build-depends: base ^>=4.16.4.0 - hs-source-dirs: app + hs-source-dirs: app, lib default-language: Haskell2010 +library + import: common-extensions + build-depends: base >=4.16 + hs-source-dirs: ., app, lib + exposed-modules: AoC + executable advent01 import: common-extensions, build-directives main-is: advent01/Main.hs