I've got this piece of code that is supposed to check whther or not first elemnt of an array can be divided by the seocnd one. Have been struggling for some time now with finding the solution, as after compiling i get this error:
Parse error (line 2, column 22): parse error (possibly incorrect indentation or mismatched brackets)
Indentation is quite confusing to me as I'm quite new to Haskell, any help would be appreciated with determining what should I do here
fst2Div:: [a] -> Bool
fst2Div (x : y : _) =
case theList of (x:_:_) -> x
(_:y:_) -> y
if (y `mod` x)==0 then True
else False