[Haskell-cafe] Possible extension to Haskell overloading behavior

Aleksey Khudyakov alexey.skladnoy at gmail.com
Tue Jul 9 20:46:54 CEST 2013


On 08.07.2013 23:54, Chris Smith wrote:
> So I've been thinking about something, and I'm curious whether anyone
> (in particular, people involved with GHC) think this is a worthwhile
> idea.
>
> I'd like to implement an extension to GHC to offer a different
> behavior for literals with polymorphic types.  The current behavior is
> something like:
>
Probably RebidableSyntax[1] could work for you. From description it
allows to change meaning of literals.

[1] 
http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/syntax-extns.html#rebindable-syntax



More information about the Haskell-Cafe mailing list