Created
September 7, 2010 11:53
-
-
Save snoyberg/568215 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TemplateHaskell #-} | |
import Language.Haskell.TH.Syntax | |
main = $(return $(return $ InfixE | |
(Just $ | |
(ConE $ mkName "VarE") `AppE` | |
((VarE $ mkName "mkName") `AppE` (LitE $ StringL "putStrLn"))) | |
(ConE $ mkName "AppE") | |
(Just $ | |
(ConE $ mkName "LitE") `AppE` | |
((ConE $ mkName "StringL") `AppE` (LitE $ StringL "Yo dawg"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment