
10 Sep
2008
10 Sep
'08
8:20 a.m.
Am Dienstag, 9. September 2008 15:46 schrieb Sean Leather:
[…]
Testing non-exported functionality without exporting the test interface seems difficult in general. Is there a way to hide part of a module interface with Cabal? Then, you could have a 'test' function exported from each module for testing but hidden for release.
You can have modules not included in the Exposed-Modules section which contain the actual implementation and export also some internals used for testing. Then you can let the exposed modules import these internal modules and reexport the stuff intended for the public.
[…]
Best wishes, Wolfgang