Opened 3 years ago

Closed 3 years ago

#10396 closed bug (fixed)

ApiAnnotatons : AnnDcolon in wrong place for PatBind

Reported by: alanz Owned by: alanz
Priority: normal Milestone: 7.10.2
Component: Compiler (Parser) Version: 7.10.1
Keywords: ApiAnnotations Cc: mpickering
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D883
Wiki Page:

Description

In the following code fragment

  let ls :: Int = undefined

the :: is attached to the ls function as a whole, rather than to the pattern on the LHS.

Change History (3)

comment:1 Changed 3 years ago by alanz

Status: newpatch

comment:2 Changed 3 years ago by Alan Zimmerman <alan.zimm@…>

In c488da851c39ca202cdd056091176acbabdd7dd4/ghc:

ApiAnnotatons : AnnDcolon in wrong place for PatBind

Summary:
In the following code fragment

    let ls :: Int = undefined

the `::` is attached to the ls function as a whole, rather than to the
pattern on the LHS.

Test Plan: ./validate

Reviewers: hvr, austin

Reviewed By: austin

Subscribers: bgamari, thomie, mpickering

Differential Revision: https://phabricator.haskell.org/D883

GHC Trac Issues: #10396

comment:3 Changed 3 years ago by thoughtpolice

Differential Rev(s): Phab:D883
Resolution: fixed
Status: patchclosed

Merged to ghc-7.10.

Note: See TracTickets for help on using tickets.