[GHC] #1841: Data.Typeable: Instances of basic types don't provide
qualified strings to mkTyCon
GHC
trac at galois.com
Tue Nov 6 21:00:55 EST 2007
#1841: Data.Typeable: Instances of basic types don't provide qualified strings to
mkTyCon
------------------------+---------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/base
Version: 6.8.1 | Severity: normal
Keywords: | Testcase:
Architecture: Unknown | Os: Unknown
------------------------+---------------------------------------------------
The documentation of Data.Typeable.mkTyCon reasonably states that the name
of the type constructor provided to mkTyCon "should be unique in the
program, so it might be wise to use the fully qualified name".
When automatically generating Typeable instances through "deriving", the
aforementioned advice seems to be followed. However, all the instances of
basic types defined in Data.Typeable don't provide qualified constructor
names to mkTyCon.
The case of Tuple constructors is specially strange, since the constructor
string lacks the surrounding parentheses (e.g "," ",," ... ).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1841>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list