On 24 January 2011 17:20, Jane Ren <j2...@ucsd.edu> wrote:
> When I try this, I get
> "AstWalker: panic! (the 'impossible' happened)
>  (GHC version 7.0.1 for x86_64-apple-darwin):
>        lexical error at character 'i'

It looks like you need to add the CPP extension to the DynFlags:

  setSessionDynFlags dflags { extensionFlags = Opt_Cpp : extensionFlags dflags }

You might have to iterate a few times to find the correct set of flags.

Cheers,
Max

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to