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

module T3964 where

import Control.Arrow

testF :: Eq a => a -> (Maybe (Maybe a)) -> Maybe a
testF v = proc x -> case x of
     Just (Just ((==v) -> True)) -> returnA -< Just v
     _                           -> returnA -< Nothing