summaryrefslogtreecommitdiff
path: root/testsuite/tests/arrows/should_compile/T21301.hs
blob: 52e1e5ae139c6b2a31b548067a75c2a83881e7e9 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE Arrows, EmptyCase #-}

import Control.Arrow

main = print $ baz (Just 43)

baz :: ArrowChoice p => p (Maybe Int) String
baz = proc x ->
  (| id (case () of)
  |) x