summaryrefslogtreecommitdiff
path: root/tests/examples/TypeSignature.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/TypeSignature.hs')
-rw-r--r--tests/examples/TypeSignature.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/examples/TypeSignature.hs b/tests/examples/TypeSignature.hs
new file mode 100644
index 0000000..cb52d66
--- /dev/null
+++ b/tests/examples/TypeSignature.hs
@@ -0,0 +1,12 @@
+module TypeSignature where
+
+{- Lifting baz to the top level should bring in xx and a as parameters,
+ and update the signature to include these
+-}
+foo a = (baz xx a)
+ where
+ xx :: Int -> Int -> Int
+ xx p1 p2 = p1 + p2
+
+baz :: (Int -> Int -> Int) -> Int ->Int
+baz xx a = xx 1 a