rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

Existential quantified constraint does not parse #566

Closed sloosch closed 4 years ago

sloosch commented 4 years ago

Hi!

The following code fails to parse the => in the data declaration.

{-#LANGUAGE ExistentialQuantification#-}

module Foo where

class IsFoo a

data AnyFoo = forall a. IsFoo a => AnyFoo a

The parse error is: <q name>, <ttype>, HaskellTokenType.DERIVING, HaskellTokenType.DIRECTIVE, HaskellTokenType.INCLUDE_DIRECTIVE, HaskellTokenType.NEWLINE, HaskellTokenType.PRAGMA_START, HaskellTokenType.SEMICOLON or HaskellTokenType.VERTICAL_BAR expected, got '=>'

rikvdkleij commented 4 years ago

Which version of the plugin?

I can't reproduce in beta72.

sloosch commented 4 years ago

Was in beta69 :blush:

Works fine in the newer version!