haskell-suite / haskell-src-exts

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Other
193 stars 94 forks source link

Parse error when using (~) #421

Open yairchu opened 5 years ago

yairchu commented 5 years ago

This program fails to parse:

{-# LANGUAGE GADTs #-}

one :: (~) a Int => a
one = 1

The culprit is using (~).

A failing test for this case is available at https://github.com/yairchu/haskell-src-exts/commit/19705caac4be5b0fbf95e354f3f56e123e39b8c2