[GHC] #9318: Type error reported in wrong place with repeated type family expressions

GHC ghc-devs at haskell.org
Fri Nov 14 02:10:10 UTC 2014


#9318: Type error reported in wrong place with repeated type family expressions
-------------------------------------+-------------------------------------
              Reporter:  goldfire    |            Owner:  simonpj
                  Type:  bug         |           Status:  new
              Priority:  high        |        Milestone:  7.10.1
             Component:  Compiler    |          Version:  7.8.3
  (Type checker)                     |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by thomie):

 Compiling the code from the ticket description now shows only the expected
 error message:
 {{{
 $ ghc-7.9.20141108 test.hs
 [1 of 1] Compiling Test             ( test.hs, test.o )

 test.hs:11:5:
     Couldn't match type ‘Bool’ with ‘Char’
     Expected type: F Int
       Actual type: Char
     In the pattern: 'x'
     In an equation for ‘bar’: bar 'x' = ()
 }}}

 A regression test is still missing, otherwise this ticket could be closed.

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


More information about the ghc-tickets mailing list