Unit-testing of GHC code
Ian Lynagh
ian at well-typed.com
Wed Jul 31 21:07:42 CEST 2013
On Wed, Jul 31, 2013 at 04:10:46PM +0200, Jan Stolarek wrote:
>
> and so on (Hunit would only be a convenient interface here). The question is how can I import a GHC module from within the testsuite and call its functions to test it they behave propertly? An attempt to simply import the module results in compilation error:
>
> Failed to load interface for ‛Foo’
> It is a member of the hidden package ‛ghc-7.7.20130731’.
> Use -v to see a list of the files searched for.
>
> Is there a workaround for this?
You need to use "-package ghc" if you want to use the GHC API.
Thanks
Ian
--
Ian Lynagh, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com/
More information about the ghc-devs
mailing list