Proposal: Improving the IsString String instance
Herbert Valerio Riedel
hvr at gnu.org
Mon Aug 26 21:16:13 CEST 2013
On 2013-08-26 at 19:39:40 +0200, Henning Thielemann wrote:
> On Mon, 26 Aug 2013, Henning Thielemann wrote:
>
>> This "opting in" already exists: Just put a space between o and the
>> quotation mark and define "o = fromString". It's Haskell 98.
>
> I was wrong: You even don't need the space between o and ".
it's almost perfect imho, except maybe for the minor issue that you will
have to surround string literals with () or use $ sometimes, as in
length (o"Overloaded String")
cheers,
hvr
More information about the Libraries
mailing list