ok, i figured it out so far (just after hitting send ;)

'setImports' makes 'My.Modules' stuff available to the interpreted code itself (a call to some of my wrapper functions) but not to my "module My.Interpreted.Module where" which i use via

  setTopLevelModule ["My.Interpreted.Module"]

So i guess there is no way to add the import to the 'My.Interpreted.Module' for convenience.

Sorry for the noise.

have fun
martin

On 21.12.2012 00:35, Martin Hilbig wrote:
hi,

how to use Language.Haskell.Interpreter.setImports?

i use it like:

   setImports ["My.Module"]

so that my interpreted modules don't need to:

   import My.Module

But i still get:

   Not in scope: data constructor `MyType'

What am i doing wrong?

Thanks in advance.

have fun
martin

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to