
23 Sep
2012
23 Sep
'12
6:28 a.m.
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 library. 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). Cheers, Simon