Skip to content

Unable to parse QuantifiedConstraints syntax #252

@fabiomogavero

Description

@fabiomogavero

GHC 8.6.1 introduced the new QuantifiedConstraints pragma, however, the latest stylish-haskell (ver 0.9.4.4) is unable to parse the associated class assertion syntax. For example, when applied on

class C (a :: *)
class (forall b . C (c b)) => D (c :: * -> *)

the program returns the following error message: Language.Haskell.Stylish.Parse.parseModule: could not parse : ParseFailed (SrcLoc ".hs" ... ...) "Illegal class assertion".

Thank you very much for your help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions