Skip to content

Interactive mode recognizes some lines as compiler errors incorrectly #635

Closed
@ikirill

Description

@ikirill

In this error message, haskell-interactive-next-error-function incorrectly picks up the line

     program :: IO () ....

as a "FILE:LINE:COL-COL: ", and then fails to find the corresponding file, causing it to fail when the filename ends up being nil.

Here's an example:

src/EnvelopesGLFW.hs:144:3-18: Couldn't match expected type ‘Program’ with actual type ‘IO ()’ …
    In the pattern: program :: IO ()
    In a stmt of a 'do' block:
      program :: IO () <- makeProgram (ProgramSpec {..})
    In the expression:
      do { program :: IO () <- makeProgram (ProgramSpec {..});
           vao :: VertexArrayObject <- genObjectName;
           programCoords <- uniformCoords program "coords";
           bufPos <- setupBuffer vao ArrayBuffer
                     $ do { locPos <- attribLocation' program "position" FloatVec2;
                            vertexAttribArray locPos $= Enabled;
                            .... };
           .... }

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