[commit: haddock] master: Add test case for literal syntax highlighting. (9dfb3f8)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 08:41:27 UTC 2015


Repository : ssh://git@git.haskell.org/haddock

On branch  : master
Link       : http://git.haskell.org/haddock.git/commitdiff/9dfb3f87cf71042eb883e228a8c6c7f25c743118

>---------------------------------------------------------------

commit 9dfb3f87cf71042eb883e228a8c6c7f25c743118
Author: Łukasz Hanuszczak <lukasz.hanuszczak at gmail.com>
Date:   Tue Jun 30 20:30:37 2015 +0200

    Add test case for literal syntax highlighting.


>---------------------------------------------------------------

9dfb3f87cf71042eb883e228a8c6c7f25c743118
 hypsrc-test/src/Literals.hs | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/hypsrc-test/src/Literals.hs b/hypsrc-test/src/Literals.hs
new file mode 100644
index 0000000..997b661
--- /dev/null
+++ b/hypsrc-test/src/Literals.hs
@@ -0,0 +1,17 @@
+module Literals where
+
+
+str :: String
+str = "str literal"
+
+num :: Num a => a
+num = 0 + 1 + 1010011 * 41231 + 12131
+
+frac :: Fractional a => a
+frac = 42.0000001
+
+list :: [[[[a]]]]
+list = [[], [[]], [[[]]]]
+
+pair :: ((), ((), (), ()), ())
+pair = ((), ((), (), ()), ())



More information about the ghc-commits mailing list