Continuing the discussion from OverloadedStringDefault proposal:
I tried to use ExtendedDefaultRules
. In my project, there is about 14 (something :: Text)
needed resolve type ambiguity. I understood that my wish of being able to set Text
as a default can be solved by using ExtendedDefaultRules
and default (Text)
.
So after removing one of the ::Text
and verifiied it didn’t compile anymore, I set ExtendedDefaultRules
on the top of the file and to my surprise, now it is compiling, even though I didn’t set the default to Text
.
Is that normal behavior ?
By the way, I can’t find in GHC manual about this default (...)
. Could someone point it out for me please ?