Originally from https://github.com/ndmitchell/hlint/issues/414 by @jasonstolaruk, the following code works fine in GHC but gives a parse error in HSE. I think the problem is that the | and -> start at the same character position.
{-# LANGUAGE MultiWayIf #-}
main = print foo
foo = if | True
-> 1
Originally from https://github.com/ndmitchell/hlint/issues/414 by @jasonstolaruk, the following code works fine in GHC but gives a parse error in HSE. I think the problem is that the
|
and->
start at the same character position.