summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/Char/readLitChar.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/lib/Char/readLitChar.hs')
-rw-r--r--testsuite/tests/lib/Char/readLitChar.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/lib/Char/readLitChar.hs b/testsuite/tests/lib/Char/readLitChar.hs
new file mode 100644
index 0000000000..7dc01e36e4
--- /dev/null
+++ b/testsuite/tests/lib/Char/readLitChar.hs
@@ -0,0 +1,12 @@
+module Main (main)
+where
+
+import Data.Char (digitToInt, lexLitChar, readLitChar)
+
+main :: IO ()
+main =
+ do putStrLn (show $ readLitChar "A")
+ putStrLn (show $ readLitChar "'A'")
+ putStrLn (show $ lexLitChar "A")
+ putStrLn (show $ lexLitChar "'A'")
+