[Haskell-cafe] Cabal confusion. Modules not being exposed still accessible for testing.

Anthony Cowley acowley at seas.upenn.edu
Wed May 4 23:24:38 UTC 2016


Michael Litchard writes:

> I use reactive-banana
> <https://github.com/HeinrichApfelmus/reactive-banana/blob/master/reactive-banana/reactive-banana.cabal>
> as an example.
>
> My question is how can Reactive.Banana.Internal.Combinators be testable
> from Reactive.Banana.Test.Plumbing? My misunderstanding is that only
> modules named in the exposed-modules stanza could be imported. Could
> someone clear up my misunderstanding?

The shared "hs-source-dirs" means the test suite is re-compiling the file from source, not depending on the library.

Anthony


More information about the Haskell-Cafe mailing list