0

I have the following simple definition.

f :: Int -> Int
f x = bla + blub
  where blub = 1
        bla = 1

The compiler gives me the error test.hs:4:21: parse error on input '=' I know about the indention rules, but all seems to be well indented here.

1 Answer 1

3

There's absolutely nothing wrong with your code.

Sign up to request clarification or add additional context in comments.

1 Comment

In my editor I inserted indention as tabs (not converted to spaces). If I use spaces instead it works. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.