test for fast (not TH).
This commit is contained in:
5
test/data/Bar.hs
Normal file
5
test/data/Bar.hs
Normal file
@@ -0,0 +1,5 @@
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
module Bar (bar) where
|
||||
import Foo (foo)
|
||||
|
||||
bar = $foo ++ "bar"
|
||||
5
test/data/Foo.hs
Normal file
5
test/data/Foo.hs
Normal 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
3
test/data/Main.hs
Normal file
@@ -0,0 +1,3 @@
|
||||
import Bar (bar)
|
||||
|
||||
main = putStrLn bar
|
||||
Reference in New Issue
Block a user