summaryrefslogtreecommitdiff
path: root/utils/check-exact/cases/RmDecl1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'utils/check-exact/cases/RmDecl1.hs')
-rw-r--r--utils/check-exact/cases/RmDecl1.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/check-exact/cases/RmDecl1.hs b/utils/check-exact/cases/RmDecl1.hs
new file mode 100644
index 0000000000..15cd9f1e04
--- /dev/null
+++ b/utils/check-exact/cases/RmDecl1.hs
@@ -0,0 +1,13 @@
+module RmDecl1 where
+
+sumSquares x = x * p
+ where p=2 {-There is a comment-}
+
+sq :: Int -> Int -> Int
+sq pow 0 = 0
+sq pow z = z^pow --there is a comment
+
+{- foo bar -}
+anotherFun 0 y = sq y
+ where sq x = x^2
+