on master help sign in
added Eq instance for Bool
9ae8e39raichoo
lib/Builtins.idr+6
@@ -127,6 +127,12 @@ instance Eq Char where
127instance Eq String where
127instance Eq String where
128 (==) = boolOp prim__eqString
128 (==) = boolOp prim__eqString
129
129
130+instance Eq Bool where
131+ True == True = True
132+ True == False = False
133+ False == True = False
134+ False == False = True
135+
130instance (Eq a, Eq b) => Eq (a, b) where
136instance (Eq a, Eq b) => Eq (a, b) where
131 (==) (a, c) (b, d) = (a == b) && (c == d)
137 (==) (a, c) (b, d) = (a == b) && (c == d)
132
138