[Haskell-cafe] Control defaulting in ghci

Patrick Palka patrick at parcs.ath.cx
Sun Jul 8 20:39:26 CEST 2012


On 7/8/2012 11:28 AM, Roman Cheplyaka wrote:
> Is there a way to control defaulting in ghci? (Like the "default"
> declaration in source files does.)
>
> ghci 7.4.1 doesn't accept "default" declarations. I tried loading a
> module with a "default" declaration, but that also didn't affect the
> ghci session.
>
> It would be ironic if this is possible in source files but not in ghci,
> since defaulting is much more useful in an interactive session than in
> modules.
>

I've too wanted this for quite some time, so I have created a ticket + a 
patch[1] that implements this feature. Feel free to test it.

[1]: http://hackage.haskell.org/trac/ghc/ticket/7061



More information about the Haskell-Cafe mailing list