summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/should_run/reads001.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/lib/should_run/reads001.hs')
-rw-r--r--testsuite/tests/lib/should_run/reads001.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/lib/should_run/reads001.hs b/testsuite/tests/lib/should_run/reads001.hs
new file mode 100644
index 0000000000..318367e7f4
--- /dev/null
+++ b/testsuite/tests/lib/should_run/reads001.hs
@@ -0,0 +1,10 @@
+-- Test the classic "\SOH" ambiguity
+
+module Main(main) where
+
+main = do { print soh ; print (length (fst (head soh))) ;
+ print so ; print (length (fst (head so))) }
+ where
+ so, soh :: [(String,String)]
+ soh = reads "\"\\SOH\"" -- Should read \SOH
+ so = reads "\"\\SOx\"" -- Should read \SO followed by x