summaryrefslogtreecommitdiff
path: root/testsuite/tests/ado/ado009.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ado/ado009.hs')
-rw-r--r--testsuite/tests/ado/ado009.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ado/ado009.hs b/testsuite/tests/ado/ado009.hs
new file mode 100644
index 0000000000..876a4fba90
--- /dev/null
+++ b/testsuite/tests/ado/ado009.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE ApplicativeDo #-}
+{-# OPTIONS_GHC -ddump-rn -dsuppress-uniques #-}
+
+module Test where
+
+-- Make sure the $ stripped from the last stmt is printed
+q :: IO ()
+q = do
+ a <- return ()
+ return $ (\_ -> ()) a