How to make a Haskell cabal project with library+executables that still run with runhaskell/ghci?
Let’s assume you have a mylib library, and mylib-commandline and mylib-server executables. You use hs-source-dirs for the library and each executable so that each has their own project root, avoiding double compilation: mylib/ # Project root mylib.cabal src/ # Root for the library tests/ mylib-commandline/ # Root for the command line utility + helper modules … Read more