I'm learning Haskell and keep getting these indentation errors when I try to define functions over multiple lines in GHCi. Here's an attempt to redefine the elem
function:
λ: :{
| let elem' x xs
| | null xs = False
| | x == head xs = True
| | otherwise = elem' x (tail xs)
| :}
<interactive>:15:5: error:
parse error (possibly incorrect indentation or mismatched brackets)
Do the =
signs somehow need to be aligned?