summaryrefslogtreecommitdiff
path: root/libraries/ghc-compact/tests/compact_function.hs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ghc-compact/tests/compact_function.hs')
-rw-r--r--libraries/ghc-compact/tests/compact_function.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/libraries/ghc-compact/tests/compact_function.hs b/libraries/ghc-compact/tests/compact_function.hs
new file mode 100644
index 0000000000..166f345552
--- /dev/null
+++ b/libraries/ghc-compact/tests/compact_function.hs
@@ -0,0 +1,6 @@
+import Control.Exception
+import GHC.Compact
+
+data HiddenFunction = HiddenFunction (Int -> Int)
+
+main = compact (HiddenFunction (+1))