[GHC] #8356: Strangeness with FunDeps

GHC ghc-devs at haskell.org
Wed Sep 25 15:32:23 CEST 2013


#8356: Strangeness with FunDeps
----------------------------------------------+----------------------------
        Reporter:  ksf                        |            Owner:
            Type:  bug                        |           Status:  new
        Priority:  normal                     |        Milestone:
       Component:  Compiler                   |          Version:  7.7
      Resolution:                             |         Keywords:
Operating System:  Unknown/Multiple           |     Architecture:
 Type of failure:  GHC rejects valid program  |  Unknown/Multiple
       Test Case:                             |       Difficulty:  Unknown
        Blocking:                             |       Blocked By:
                                              |  Related Tickets:
----------------------------------------------+----------------------------

Comment (by ksf):

 Yes, the more specific error message looks very helpful.

 > In that case, perhaps you intended

 Indeed, I did. That doesn't work for the (overlapping) recursive case up
 to the match, though:
 {{{
 instance Replaced sy a b xs ys => Replaced sy a b ((sy ::: c) ': xs) ((sy
 ::: d) ': ys)
 }}}

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



More information about the ghc-tickets mailing list