Hi, Am Mittwoch, den 25.04.2012, 11:15 +0300 schrieb Yitzchak Gale: > 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.
another option, quick idea from a pub: Make OverloadedStrings work with re-bindable syntax (←needs GHC change, probably) and redefine fromString as you want. E.g, if you want to use alwas Text, just define fromText :: String -> Text in your module (and do not import the IsString method). Greetings, Joachim -- Joachim "nomeata" Breitner m...@joachim-breitner.de | nome...@debian.org | GPG: 0x4743206C xmpp: nome...@joachim-breitner.de | http://www.joachim-breitner.de/
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users