test for fast (not TH).

This commit is contained in:
Kazu Yamamoto
2013-03-13 13:37:17 +09:00
parent b35d19beec
commit 0556ec330c
6 changed files with 38 additions and 1 deletions

5
test/data/Bar.hs Normal file
View File

@@ -0,0 +1,5 @@
{-# LANGUAGE TemplateHaskell #-}
module Bar (bar) where
import Foo (foo)
bar = $foo ++ "bar"

5
test/data/Foo.hs Normal file
View File

@@ -0,0 +1,5 @@
module Foo (foo) where
import Language.Haskell.TH
foo :: ExpQ
foo = stringE "foo"

3
test/data/Main.hs Normal file
View File

@@ -0,0 +1,3 @@
import Bar (bar)
main = putStrLn bar