Skip to content

parse-error "Expecting then" "Expecting else" DoAndIfThenElse in indentation #884

Closed
@k-bx

Description

@k-bx

For this code:

main :: IO ()
main = do
    if True
    then putStrLn "True"

when you press enter after "True" – you get an error:

let: No catch for tag: parse-error, "Expecting then"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions