
10 Aug
2020
10 Aug
'20
6:35 p.m.
Hey James, yes, if you want to avoid duplicate compilation, you need to define a `library` with a separate `hs-source-dirs` and use that library in the `build-depends` of your executables. See https://stackoverflow.com/questions/12305970/how-to-make-a-haskell-cabal-pro... and the linked question. Cheers, Niklas