X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftests%2FdeSugar%2Fds028.hs;fp=ghc%2Fcompiler%2Ftests%2FdeSugar%2Fds028.hs;h=728a0c89bc264fc8c6cc273eeb44ee6ca20e9ff1;hb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;hp=0000000000000000000000000000000000000000;hpb=e48474bff05e6cfb506660420f025f694c870d38;p=ghc-hetmet.git diff --git a/ghc/compiler/tests/deSugar/ds028.hs b/ghc/compiler/tests/deSugar/ds028.hs new file mode 100644 index 0000000..728a0c8 --- /dev/null +++ b/ghc/compiler/tests/deSugar/ds028.hs @@ -0,0 +1,10 @@ +--!!! ds028: failable pats in top row + +-- when the first row of pats doesn't have convenient +-- variables to grab... + +mAp f [] = [] +mAp f (x:xs) = f x : mAp f xs + +True |||| _ = True +False |||| x = x