[GHC] #14000: Out of scope errors with type families do not mention scope

GHC ghc-devs at haskell.org
Thu Jul 20 16:02:23 UTC 2017


#14000: Out of scope errors with type families do not mention scope
-------------------------------------+-------------------------------------
        Reporter:  EyalLotem         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  TypeFamilies
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Poor/confusing    |  Unknown/Multiple
  error message                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):

 * cc: RyanGlScott (added)
 * failure:  None/Unknown => Poor/confusing error message
 * keywords:   => TypeFamilies


Comment:

 Indeed, the error message in GHC 7.10.3 and earlier was simply:

 {{{
 $ /opt/ghc/7.10.3/bin/ghci Bug.hs
 GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
 [1 of 1] Compiling Main             ( Bug.hs, interpreted )

 Bug.hs:5:10: Not in scope: ‘noSuchThing’
 Failed, modules loaded: none.
 }}}

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


More information about the ghc-tickets mailing list