diff --git a/ghc-mod.cabal b/ghc-mod.cabal index ac660bf87..c909a8132 100644 --- a/ghc-mod.cabal +++ b/ghc-mod.cabal @@ -92,6 +92,12 @@ Extra-Source-Files: ChangeLog test/data/stack-project/app/*.hs test/data/stack-project/src/*.hs test/data/stack-project/test/*.hs + test/data/options-cradle/ghc-mod.options + test/data/options-cradle/ghc-mod.package-db-stack + test/data/options-cradle/package-db-a/package.cache + test/data/options-cradle/package-db-b/package.cache + test/data/options-cradle/package-db-c/package.cache + test/data/options-cradle/src/*.hs Library Default-Language: Haskell2010 diff --git a/test/data/options-cradle/ghc-mod.options b/test/data/options-cradle/ghc-mod.options new file mode 100644 index 000000000..bf11cfa3b --- /dev/null +++ b/test/data/options-cradle/ghc-mod.options @@ -0,0 +1,2 @@ +-isrc +-DINTERPRETED diff --git a/test/data/options-cradle/ghc-mod.package-db-stack b/test/data/options-cradle/ghc-mod.package-db-stack new file mode 100644 index 000000000..ce2d74166 --- /dev/null +++ b/test/data/options-cradle/ghc-mod.package-db-stack @@ -0,0 +1,5 @@ +global +user +package-db-a +package-db-b +package-db-c diff --git a/test/data/options-cradle/package-db-a/package.cache b/test/data/options-cradle/package-db-a/package.cache new file mode 100644 index 000000000..b3cae5cf0 Binary files /dev/null and b/test/data/options-cradle/package-db-a/package.cache differ diff --git a/test/data/options-cradle/package-db-b/package.cache b/test/data/options-cradle/package-db-b/package.cache new file mode 100644 index 000000000..b3cae5cf0 Binary files /dev/null and b/test/data/options-cradle/package-db-b/package.cache differ diff --git a/test/data/options-cradle/package-db-c/package.cache b/test/data/options-cradle/package-db-c/package.cache new file mode 100644 index 000000000..b3cae5cf0 Binary files /dev/null and b/test/data/options-cradle/package-db-c/package.cache differ diff --git a/test/data/options-cradle/src/Main.hs b/test/data/options-cradle/src/Main.hs new file mode 100644 index 000000000..086db61c1 --- /dev/null +++ b/test/data/options-cradle/src/Main.hs @@ -0,0 +1,10 @@ +module Main + ( main + , foo + ) where + +main :: IO () +main = return () + +foo :: Int +foo = 0 diff --git a/test/data/options-cradle/src/Main2.hs b/test/data/options-cradle/src/Main2.hs new file mode 100644 index 000000000..ce7c2ddcf --- /dev/null +++ b/test/data/options-cradle/src/Main2.hs @@ -0,0 +1,10 @@ +module Main2 + ( main + , foo + ) where + +main :: IO () +main = return () + +foo :: Int +foo = 0 + id