#65: depth cutoff reports the wrong constraint

View: New views
2 Messages — Rating Filter:   Alert me  

#65: depth cutoff reports the wrong constraint

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#65: depth cutoff reports the wrong constraint
-------------------------+--------------------------------------------------
 Reporter:  ross         |       Owner:  nobody
     Type:  defect       |      Status:  new  
 Priority:  major        |   Milestone:        
Component:  type system  |     Version:  200609
 Keywords:               |  
-------------------------+--------------------------------------------------
Given the following:
 {{{
 class C a where
         f :: a -> a

 instance (Eq a, C a) => C a

 test = f True
 }}}
 hugs -98 reports
 {{{
 ERROR "Silly.hs" -
 *** The type checker has reached the cutoff limit while trying to
 *** determine whether:
 ***     Eq Bool
 *** can be deduced from:
 ***     ()
 *** This may indicate that the problem is undecidable.  However,
 *** you may still try to increase the cutoff limit using the -c
 *** option and then try again.  (The current setting is -c40)
 }}}
 when in fact it is trying to solve `C Bool`.

--
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/65>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell
_______________________________________________
Hugs-Bugs mailing list
Hugs-Bugs@...
http://www.haskell.org/mailman/listinfo/hugs-bugs

Re: #65: depth cutoff reports the wrong constraint

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#65: depth cutoff reports the wrong constraint
--------------------------+-------------------------------------------------
  Reporter:  ross         |       Owner:  nobody
      Type:  defect       |      Status:  closed
  Priority:  major        |   Milestone:        
 Component:  type system  |     Version:  200609
Resolution:  fixed        |    Keywords:        
--------------------------+-------------------------------------------------
Changes (by ross):

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

Comment:

 Fixed by the patch
 {{{
 Fri Apr 20 21:28:47 BST 2007  Ross Paterson <ross@...>
   * report the top-level goal when hitting the cutoff (fixes #65)
 }}}

--
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/65>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell
_______________________________________________
Hugs-Bugs mailing list
Hugs-Bugs@...
http://www.haskell.org/mailman/listinfo/hugs-bugs
LightInTheBox - Buy quality products at wholesale price!