default instance for IsString

Tyson Whitehead twhitehead at gmail.com
Wed Apr 25 17:19:55 CEST 2012


On April 25, 2012 04:15:41 Yitzchak Gale wrote:
> The only reason I don't like using OverloadedStrings
> for typing string literals as Text and ByteString
> is that when you turn on OverloadedStrings, you turn
> it on for all types, not just Text and ByteString.
> I don't want to be forced to do that. Because
> all other uses of OverloadedStrings that I have
> seen, and there are many, are ill-advised in my
> opinion. They all should have been quasiquoters.

Maybe what you really want is the ability to control instance imports?

Is there a technical reason this couldn't be done?  The Haskell report only 
says doing this is not part of haskell.  It doesn't say why.

Cheers!  -Tyson



More information about the Glasgow-haskell-users mailing list