diff options
Diffstat (limited to 'testsuite/tests/arrows/should_compile/arrowlet1.hs')
-rw-r--r-- | testsuite/tests/arrows/should_compile/arrowlet1.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/arrows/should_compile/arrowlet1.hs b/testsuite/tests/arrows/should_compile/arrowlet1.hs new file mode 100644 index 0000000000..b08e030d1c --- /dev/null +++ b/testsuite/tests/arrows/should_compile/arrowlet1.hs @@ -0,0 +1,8 @@ +{-# LANGUAGE Arrows #-} + +module ShouldCompile where + +import Control.Arrow + +f :: Arrow a => a (Int,Int) Int +f = proc (x,y) -> let z = x*y in returnA -< y+z |