[GHC] #10778: GHC doesn't infer all constrains

GHC ghc-devs at haskell.org
Wed Aug 19 16:54:42 UTC 2015


#10778: GHC doesn't infer all constrains
-------------------------------------+-------------------------------------
        Reporter:  danilo2           |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.2
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by danilo2):

 No, But there are the GADTs constraints:
 {{{
 IndexOf a cont ~ idx, ElementByIdx idx cont ~ a, Measurable cont
 }}}
 So {{{idx}}} is always result of {{{IndexOf a cont}}}. Is this information
 not enough for Haskell?

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


More information about the ghc-tickets mailing list