Mercury Bugs - mercury
View Issue Details
0000035mercuryBugpublic2008-01-08 14:382009-08-19 12:57
Reporterpetdr 
Assigned Towangp 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000035: unsatisfied typeclass constraints error message mentions *satisfied* constraints
DescriptionThe attached program gives the following error

% missing_constraints.m:030: In clause for type class method implementation:
% missing_constraints.m:030: unsatisfiable typeclass constraints:
% missing_constraints.m:030: `missing_constraints.t1(int)' and
% missing_constraints.m:030: `missing_constraints.t2(int)'.

but the typeclass constraint t1(int) exists, only t2(int) is missing.

Working out which constraint is missing when the list contains a lot of constraints in time consuming and thus I think the compiler should only report those constraints which are needed.
TagsNo tags attached.
Attached Files? missing_constraints.m (736) 2008-01-08 14:38
https://bugs.mercurylang.org/file_download.php?file_id=31&type=bug

Notes
(0000182)
wangp   
2009-08-19 12:57   
Fixed today.

Issue History
2008-01-08 14:38petdrNew Issue
2008-01-08 14:38petdrFile Added: missing_constraints.m
2009-08-18 11:56petdrStatusnew => assigned
2009-08-18 11:56petdrAssigned To => wangp
2009-08-19 12:57wangpNote Added: 0000182
2009-08-19 12:57wangpStatusassigned => closed
2009-08-19 12:57wangpResolutionopen => fixed