Cabal: N executables without building all the modules N times?
James Cook
falsifian at falsifian.org
Wed Aug 12 21:52:14 UTC 2020
On 2020-08-10 22:35, Niklas Hambüchen wrote:
> 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-project-with-libraryexecutables-that-still-run-with
>
> and the linked question.
>
> Cheers,
> Niklas
Thanks! That's exactly the information I was looking for. I guess I did
not use the right search terms.
--
James
More information about the Libraries
mailing list