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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ghc-devs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to