summaryrefslogtreecommitdiff
path: root/testsuite/tests/arrows/should_compile/arrowdo2.hs
blob: 3562dc23b9dfaa7787726bc9a45822ac682ed4e7 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE Arrows #-}

module ShouldCompile where

import Control.Arrow

f :: Arrow a => a (Int,Int) Int
f = proc (x,y) -> do
	let z = x*y
	returnA -< y+z