Changing language options in ghci at runtime

Daniel Fischer daniel.is.fischer at googlemail.com
Sat Apr 9 14:04:47 CEST 2011


On Saturday 09 April 2011 13:50:03, Simon Hengel wrote:
> Hello,
> does anyone know whether you can somehow change the currently active
> language flags during a ghci session (say change what `:show languages'
> outputs)?

:set -Xlanguage

I suppose some languages wouldn't work/make sense (CPP, TH) but most you 
can toggle that way.

> If no, is this possible by using the GHC API?
> 
> Cheers,
> Simon
> 



More information about the Glasgow-haskell-users mailing list