summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/should_run/packedstring001.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/lib/should_run/packedstring001.hs')
-rw-r--r--testsuite/tests/lib/should_run/packedstring001.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/lib/should_run/packedstring001.hs b/testsuite/tests/lib/should_run/packedstring001.hs
new file mode 100644
index 0000000000..9ee24e232c
--- /dev/null
+++ b/testsuite/tests/lib/should_run/packedstring001.hs
@@ -0,0 +1,11 @@
+
+module Main (main) where
+
+import Char (isSpace)
+import Data.PackedString
+
+-- Bug in PackedString.lhs (fixed in rev 1.5)
+
+foo = packString "this is a test"
+main = print (filterPS (not.isSpace) foo)
+