summaryrefslogtreecommitdiff
path: root/testsuite/tests/arrows/should_compile/arrowlet1.hs
blob: b08e030d1c0772485d7acdc83d42d8963de054c5 (plain)
1
2
3
4
5
6
7
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