#1841: Data.Typeable: Instances of basic types don't provide qualified strings
to
mkTyCon
----------------------------+-----------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone: Not GHC
Component: libraries/base | Version: 6.8.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------------+-----------------------------------------------
Comment (by igloo):
Replying to [comment:9 guest]:
>
> However I don't really know what to do with (->) and [].
I think they (and (,,,)) should be left unqualified.
> But I'm confused about the list constructor. Prelude.[] should work but
I've noticed a wierd GHC behaviour (version 6.6 sorry) when using the
constructor qualified. Is there a reason for which GHC fails parsing the
following declarations?
>
> {{{
> f = undefined :: Prelude.[] Prelude.Int
> g = undefined :: GHC.Base.[] Prelude.Int
> }}}
You aren't allowed to qualify [], -> or (,,,) according to the Haskell 98
report.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1841#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs