blob: 56b1117e9a3626b0d620b4be2038e9f64c525d45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{-# OPTIONS -XArrows #-}
-- Test for Trac #1662
module Arrow where
import Control.Arrow
expr' :: Arrow a => a Int Int
expr' = error "urk"
term :: Arrow a => a () Int
term = error "urk"
expr1 :: Arrow a => a () Int
expr1 = proc () -> do
x <- term -< ()
expr' -< x
expr2 :: Arrow a => a () Int
expr2 = proc y -> do
x <- term -< y
expr' -< x
|