Skip to content

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

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
Edited by Ian Lynagh -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information