Skip to content

Instantly share code, notes, and snippets.

@eagletmt
Created March 12, 2013 15:13
Show Gist options
  • Save eagletmt/5143729 to your computer and use it in GitHub Desktop.
Save eagletmt/5143729 to your computer and use it in GitHub Desktop.
{-# LANGUAGE TemplateHaskell #-}
module Bar (bar) where
import Foo (foo)
bar = $foo ++ "bar"
module Foo (foo) where
import Language.Haskell.TH
foo :: ExpQ
foo = stringE "foo"
import Bar (bar)
main = putStrLn bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment