Skip to content

Trailing blank line in .purs-repl fails, with a confusing error message #3248

@marick

Description

@marick

[@natefaubion suggested I move this here.]

I accidentally left a blank line at the end of my .purs-repl file.

import Prelude

You can't see the line, but it's there.

The result of starting a repl is this:

503 $ pulp repl
PSCi, version 0.11.6
Type :? for help

import Prelude

(line 1, column 1):
unexpected end of input
expecting "import", declaration, expression or "let"

That's particularly confusing for a newbie because there's no indication where the problem is. (Puzzled me because it'd been a day since I'd fiddled with .purs-repl and I'd forgotten I did it.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions