summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.hs
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-05-13 00:26:53 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-05-13 00:26:53 -0400
commit34504dbe794c332c1f9a84c99cca605dbf3dbf63 (patch)
tree725455a00fed1ac2ea5eb4e0605eba22fa77bcdb /tests/examplefiles/example.hs
parent16b39eea26af87813151b03992f2ed4738057eaa (diff)
downloadpygments-34504dbe794c332c1f9a84c99cca605dbf3dbf63.tar.gz
Rename Haskell example file
Diffstat (limited to 'tests/examplefiles/example.hs')
-rw-r--r--tests/examplefiles/example.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/examplefiles/example.hs b/tests/examplefiles/example.hs
new file mode 100644
index 00000000..f266f62e
--- /dev/null
+++ b/tests/examplefiles/example.hs
@@ -0,0 +1,15 @@
+import "base" Data.Char
+import "base" Data.Char (isControl, isSpace)
+import "base" Data.Char (isControl, --isSpace)
+ isSpace)
+import "base" Data.Char (isControl, -- isSpace)
+ isSpace)
+
+(-->) :: Num a => a -- signature
+(-->) = 2 -- >implementation
+
+--test comment
+-- test comment
+
+main :: IO ()
+main = putStrLn "hello world"