Skip to content

Commit b5f0e29

Browse files
committed
add test files
1 parent 3032c6e commit b5f0e29

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

ghcide/test/data/THLoading/A.hs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module A where
2+
import B (bar)
3+
4+
foo :: ()
5+
foo = bar

ghcide/test/data/THLoading/B.hs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module B where
2+
3+
bar :: ()
4+
bar = ()

ghcide/test/data/THLoading/THA.hs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{-# LANGUAGE TemplateHaskell #-}
2+
module THA where
3+
import Language.Haskell.TH
4+
import A (foo)
5+
6+
th_a :: DecsQ
7+
th_a = [d| a = foo |]

ghcide/test/data/THLoading/THB.hs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{-# LANGUAGE TemplateHaskell #-}
2+
module THB where
3+
import THA
4+
5+
$th_a

ghcide/test/data/THLoading/hie.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cradle: {direct: {arguments: ["-Wmissing-signatures", "-package template-haskell", "THA", "THB", "A", "B"]}}

0 commit comments

Comments
 (0)