[Haskell-cafe] Organizaing tests in Haskell

Simon Hengel sol at typeful.net
Sun Sep 23 12:28:06 CEST 2012

> Of course others are still able to import your Internal modules

That is not necessarily true.  For libraries, you can list internal
modules as other-modules (in contrast to exposed-modules) in you Cabal
file.  That way they are not part of the public interface of your

However, that approach does not work if you want to do encapsulation
within a single project.  I think in that case you most likely end up
with CPP (it's ugly, but it works).


More information about the Haskell-Cafe mailing list