packages feed

doctest-0.25.0: test/integration/template-haskell-bugfix/Main.hs

{-# LANGUAGE TemplateHaskell #-}
module Main where

-- Import our template "pr"
import Printf ( pr )

-- The splice operator $ takes the Haskell source code
-- generated at compile time by "pr" and splices it into
-- the argument of "putStrLn".
main = putStrLn ( $(pr "Hello") )