#!/usr/bin/env stack --stack --install-ghc runghc {-# LANGUAGE TemplateHaskell #-} module TH (version_template) where import Control.Monad import Language.Haskell.TH version_template :: Q Exp version_template = [| \x -> x + 1 |] main = version_template -- More: https://markkarpov.com/tutorial/th.html