On Mon, Oct 27, 2008 at 3:23 PM, Thomas Schilling
[EMAIL PROTECTED] wrote:
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
GHC contains its own preprocessor, it just needs to be activated using
-cpp on the command line or {-# LANGUAGE CPP #-} inside the file.
However, I wasn't suggesting that. I was suggesting that before you
hand the input to the ghc api, you substitute all occurences of import
foo by something that
On Tue, Oct 28, 2008 at 2:34 AM, Thomas Schilling
[EMAIL PROTECTED] wrote:
GHC contains its own preprocessor, it just needs to be activated using
-cpp on the command line or {-# LANGUAGE CPP #-} inside the file.
However, I wasn't suggesting that. I was suggesting that before you
hand the
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]
see http://code.haskell.org/~nominolo/html/ghc/GHC.html#v%3AsetTargets
Here're GHC's current haddocks (for HEAD):
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
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
On Oct 25, 2008, at 8:39 PM, Anatoly Yakovenko wrote:
so I am trying to figure out how to use ghc as a library. following
this example, http://www.haskell.org/haskellwiki/GHC/As_a_library, i
can load a module and examine its symbols:
[...]
given Test.hs:
module Test where
hello = hello
Hi, Anatoly
Sorry for don't answering your question in the first place, but for this
kind of tasks I believe you might be better off using some lightweight
wrapper of the GHC Api.
thanks, that's really cool, but I am trying to figure out a way to
embed haskell into another program so i can
Hello,
I am reading
1) http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/API
2) http://haskell.org/haskellwiki/GHC/As_a_library
Conceptually by allowing importation of GHC itself into a problem is this
some kind of reification?
Kind regards, vasya