1 module ShouldSucceed where
3 fib n = if n <= 2 then n else fib (n-1) + fib (n-2)
5 ----------------------------------------
8 mem x (y:ys) = (x == y) `oR` mem x ys
10 a `oR` b = if a then True else b
12 ----------------------------------------
15 mem1 x (y:ys) = (x == y) `oR1` mem2 x ys
17 a `oR1` b = if a then True else b
20 mem2 x (y:ys) = (x == y) `oR` mem1 x ys
22 ---------------------------------------
25 mem3 x (y:ys) = if [x] == [y] then mem4 x ys else False
27 mem4 y (x:xs) = mem3 y xs
29 ---------------------------------------
31 main1 = [[(1,True)]] == [[(2,False)]]
33 ---------------------------------------
35 main2 = "Hello" == "Goodbye"
37 ---------------------------------------
39 main3 = [[1],[2]] == [[3]]