Carajillu <[EMAIL PROTECTED]> writes:

> I get "line 18:parse error (possibly incorrect indentation)"

..which is a bit misleading, as the problem is on the preceeding line
of code.

>               if x == e then return l2

And if x /= e?  What is check_elem then?¹  

> -- Tries to match two lists. If they match, the result consists of the
> sublist
> -- bound to the wildcard in the pattern list.
> (line 18) 

-k

¹ If you really don't want to provide that option, you could perhaps do:
        check_elem x | x == e = return l2

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to