Skip to content

Problem with operator beginning with @ #326

Open
@meditans

Description

@meditans

Hi, ghc, without any extension enabled, permits an infix function lo begin with @, like:

> let a @: b = a
> 3 @: 4
3

However, when parsing it with haskell-src-exts-1.18.2, we have (as mentioned in https://github.com/chrisdone/hindent/issues/226):

> fmap (const ()) (parseExpWithMode parseMode "p @Int")
ParseOk ()
> fmap (const ()) (parseExpWithMode parseMode "p @: q")
ParseFailed (SrcLoc "<unknown>.hs" 1 4) "Parse error: :"

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