Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 11 lines (8 sloc) 0.311 kB
9fd7471 @maloi th beispiel
maloi authored
1 {-# LANGUAGE TemplateHaskell #-}
2
3 -- Import our template "printf"
4 import PrintF (printf)
5
6 -- The splice operator $ takes the Haskell source code
7 -- generated at compile time by "printf" and splices it into
8 -- the argument of "putStrLn".
9 main = do
10 putStrLn $ $(printf "Hello %s %%x%% %d %%x%%") "World" 12
Something went wrong with that request. Please try again.