[Haskell-cafe] Control defaulting in ghci
Roman Cheplyaka
roma at ro-che.info
Thu Jul 12 11:29:19 CEST 2012
* Patrick Palka <patrick at parcs.ath.cx> [2012-07-08 14:39:26-0400]
> 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
Very nice, thanks!
I'm travelling at the moment and don't have a good enough internet
connection to fetch the GHC sources, but I'll try it and let you know in
a couple of weeks.
--
Roman I. Cheplyaka :: http://ro-che.info/
More information about the Haskell-Cafe
mailing list