[GHC] #11460: OverloadedStrings cause error in annotation

GHC ghc-devs at haskell.org
Fri Jan 22 00:14:13 UTC 2016


#11460: OverloadedStrings cause error in annotation
-------------------------------------+-------------------------------------
        Reporter:  alanz             |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:  invalid           |             Keywords:
Operating System:  Linux             |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by rwbarton):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Yes, it ''is'' an overloaded literal, so it desugars to
 {{{
 {-# ANN module (fromString ("HLint: ignore Eta reduce" :: String)) #-}
 }}}
 The return type of `fromString` is ambiguous, as GHC says.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11460#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list