diff options
Diffstat (limited to 'testsuite/tests/simplCore/should_compile/simpl001.hs')
-rw-r--r-- | testsuite/tests/simplCore/should_compile/simpl001.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_compile/simpl001.hs b/testsuite/tests/simplCore/should_compile/simpl001.hs new file mode 100644 index 0000000000..4b2bfcc240 --- /dev/null +++ b/testsuite/tests/simplCore/should_compile/simpl001.hs @@ -0,0 +1,13 @@ +-- !!! Desugaring sections with function-type arguments +-- Although this is really a desugaring test, the problem is +-- only tickled by the simplifier + +-- type Foo a b = a -> (b -> a) -> b +module ShouldCompile where + +(++++) :: (a -> (b -> a) -> b) -> (a -> (b -> a) -> b) -> a -> (b -> a) -> b +x ++++ y = y + +g a xs = map (++++ a) xs + +h b xs = map (b ++++) xs |