Ticket #1385 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

(1,True) == (2,False) doesn't compile

Reported by: igloo Owned by: simonpj
Priority: high Milestone: 6.8.1
Component: Compiler (Type checker) Version: 6.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: tc049, tc227 Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo) (diff)

This module:

module Foo where

foo = (1,True) == (2,False)

currently fails to compile:

    No instance for (Eq (t, Bool))
      arising from a use of `==' at q.hs:4:6-26
    Possible fix: add an instance declaration for (Eq (t, Bool))
    In the expression: (1, True) == (2, False)
    In the definition of `foo': foo = (1, True) == (2, False)

but this does compile:

module Foo where

foo = 1 == 2

Change History

Changed 6 years ago by igloo

  • testcase set to tc049

Changed 6 years ago by igloo

  • description modified (diff)

Changed 6 years ago by simonpj

  • owner set to simonpj

Changed 6 years ago by simonpj

  • status changed from new to closed
  • testcase changed from tc049 to tc049, tc227
  • resolution set to fixed

Good report; now fixed.

Simon

Changed 6 years ago by igloo

  • milestone changed from 6.8 branch to 6.8.1

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.