Closed robx closed 3 years ago
It turns out the brackets aren't the problem, here's a simpler test case from the GHC test suite:
{-# LANGUAGE Arrows #-}
module ShouldCompile where
import Control.Arrow
g :: ArrowChoice a => Int -> a (Int,Int) Int
g x = proc (y,z) -> (case compare x y of
LT -> \ a -> returnA -< x+a
EQ -> \ b -> returnA -< y+z+b
GT -> \ c -> returnA -< z+x
) 1
Describe the bug Running ormolu on valid Haskell source files with Arrows extension cause ormolu to exit with "ormolu: not implemented yet: HsCmdApp". It seems the core fragment is
(| ... |) thing
, i.e. the extra word after the brackets.To Reproduce
Expected behavior I expect ormolu to run successfully.
Environment
Additional context
GHC documentation; this example was pieced together from that: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/arrows.html#primitive-constructs Source code comment says to ping @yumiova.