Not at the moment.  I was thinking about abstracting out the finder,
which might be useful for other things, too.  Can you maybe describe
your actual goal?  Adding an import "foo/bar" would not parse, so you
must have some kind of preprocessing going on, so you might be able to
insert some dummy imports there which you then have to provide.  E.g.:
import "foo/bar.hs" ~~> import CafeF00d.Foo.Bar, and you then copy (or
symlink) foo/bar.hs to CafeF00d/Foo/Bar.hs.  You can put those into a
special directory which you prepend to the list of searched
directories.

I still can't see a good use case for this, though.

2008/10/27 Anatoly Yakovenko <[EMAIL PROTECTED]>:
> On Mon, Oct 27, 2008 at 3:27 AM, Thomas Schilling
> <[EMAIL PROTECTED]> wrote:
>> I'm not quite sure what you are trying to do.  But for what it's
>> worth, you can load a specific file via
>>
>>  setTarget [Target (TargetFile "foo/blah.hs") True Nothing]
>
> right, but I cant do that from inside a module in place of an import.
> Is there any way to for me to somehow tell ghc, or my wrapper, that I
> want to load a module from a specific directory, regardless of what
> the current include flags are?
>
> Anatoly
>
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to