[Hugs] #65: depth cutoff reports the wrong constraint
#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
#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@soi.city.ac.uk> * 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
participants (1)
-
Hugs