<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>As of recently you can have private libraries in a package. See
e.g. my htoml-megaparsec package for an example:
<a class="moz-txt-link-freetext" href="http://hackage.haskell.org/package/htoml-megaparsec">http://hackage.haskell.org/package/htoml-megaparsec</a> where I use it
to do exactly what you wanted.<br>
</p>
<div class="moz-cite-prefix">On 1/7/19 2:08 AM, Georgi Lyubenov
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CABT0e9oEFMwMTMhfq=V=XqJb6M9eCcft1vKK1XKPXutOyZkbcQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Greetings,<br>
<br>
I want to have internal modules which I do not expose at all. I
also want to be able to test them.<br>
<br>
This however also hides these modules from my tests.<br>
<br>
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.<br>
<br>
Is there some obvious and "best" solution that I am missing
here? For reference I use Stack.<br>
<br>
Thanks in advance!<br>
<br>
=======<br>
Georgi</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
</blockquote>
</body>
</html>