summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/arrows/should_fail/arrowfail004.hs
blob: 3e0835a0e4fdbd9925264eb72ec94a2732c58a2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE Arrows, ExistentialQuantification #-}

-- Trac #1662

module ShouldFail where

import Control.Arrow

data T = forall a. T a

panic :: (Arrow arrow) => arrow T T
panic = proc (T x) -> do returnA -< T x