My preferred solution is to put all the implementation inĀ Mylib.Internal.Foo modules that export everything, with the convention that it's not subject to versioning policies (so testing is really the only legitimate use), and reexport the public stuff in Mylib.Foo.
Li-yao
Greetings,_______________________________________________
I want to have internal modules which I do not expose at all. I also want to be able to test them.
This however also hides these modules from my tests.
The best way I have found to work around this is to include my entire source directory in the test suite (source-dirs). This however means that I can't reuse builds that didn't include the tests.
Is there some obvious and "best" solution that I am missing here? For reference I use Stack.
Thanks in advance!
=======
Georgi
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.