[Haskell-cafe] using ghc as a library

Anatoly Yakovenko aeyakovenko at gmail.com
Tue Oct 28 11:37:43 EDT 2008


On Tue, Oct 28, 2008 at 2:34 AM, Thomas Schilling
<nominolo at googlemail.com> 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 input to the ghc api, you substitute all occurences of import
> "foo" by something that the haskell parser understands.

Thanks a lot for your help.  I am trying your suggestion at the moment.

Anatoly


More information about the Haskell-Cafe mailing list