summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pygmentex/pygmentex_demo.hs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/pygmentex/pygmentex_demo.hs')
-rw-r--r--macros/latex/contrib/pygmentex/pygmentex_demo.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/macros/latex/contrib/pygmentex/pygmentex_demo.hs b/macros/latex/contrib/pygmentex/pygmentex_demo.hs
new file mode 100644
index 0000000000..b784c890a5
--- /dev/null
+++ b/macros/latex/contrib/pygmentex/pygmentex_demo.hs
@@ -0,0 +1,7 @@
+module Main where
+
+-- the main IO action
+main = do { putStr "What is your name? "
+ , name''' <- read
+ , putStrLn ("Hello, " ++ name''')
+ }