Stephen Paul Weber singpolyma at singpolyma.net
Thu Feb 14 16:58:10 CET 2013

Somebody claiming to be Simon Peyton-Jones wrote:
>    The design is described here:
>        http://hackage.haskell.org/trac/ghc/wiki/OverloadedLists
>    Eg. you can use it for maps, so that
>            [(1,"foo"), (4,"bar")] :: Map Int String

So, this has probably been asked before, but out of curiosity, given:

	 instance IsList Text where
		type Item Text = Char
		fromList = Text.pack
		toList   = Text.unpack

What is the relationship to OverloadedStrings?  Since "blah" is sugar for 
['b','l','a','h'], could OverloadedLists also work for string literals 
/ string patterns?

Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130214/f3e411f8/attachment.pgp>

More information about the ghc-devs mailing list