File tree Expand file tree Collapse file tree 7 files changed +54
-0
lines changed
tests/IntegrationTests/new-build Expand file tree Collapse file tree 7 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ Extra-Source-Files:
85
85
tests/IntegrationTests/new-build/T4017/cabal.project
86
86
tests/IntegrationTests/new-build/T4017/p/p.cabal
87
87
tests/IntegrationTests/new-build/T4017/q/q.cabal
88
+ tests/IntegrationTests/new-build/build_tool_depends.sh
89
+ tests/IntegrationTests/new-build/build_tool_depends/cabal.project
90
+ tests/IntegrationTests/new-build/build_tool_depends/client/Hello.hs
91
+ tests/IntegrationTests/new-build/build_tool_depends/client/client.cabal
92
+ tests/IntegrationTests/new-build/build_tool_depends/pre-proc/MyCustomPreprocessor.hs
93
+ tests/IntegrationTests/new-build/build_tool_depends/pre-proc/pre-proc.cabal
88
94
tests/IntegrationTests/new-build/executable/Main.hs
89
95
tests/IntegrationTests/new-build/executable/Setup.hs
90
96
tests/IntegrationTests/new-build/executable/Test.hs
Original file line number Diff line number Diff line change
1
+ . ./common.sh
2
+ cd build_tool_depends
3
+ cabal new-build client
Original file line number Diff line number Diff line change
1
+ packages : client, pre-proc
Original file line number Diff line number Diff line change
1
+ {-# OPTIONS_GHC -F -pgmF zero-to-one #-}
2
+ module Main where
3
+
4
+ a :: String
5
+ a = " 0000"
6
+
7
+ main :: IO ()
8
+ main = putStrLn a
Original file line number Diff line number Diff line change
1
+ name : client
2
+ version : 0.1.0.0
3
+ synopsis : Checks build-tool-depends are put in PATH
4
+ license : BSD3
5
+ category : Testing
6
+ build-type : Simple
7
+ cabal-version : >= 1.10
8
+
9
+ executable hello-world
10
+ main-is : Hello.hs
11
+ build-depends : base
12
+ build-tool-depends : pre-proc :zero-to-one
13
+ default-language : Haskell2010
Original file line number Diff line number Diff line change
1
+ module Main where
2
+
3
+ import System.Environment
4
+ import System.IO
5
+
6
+ main :: IO ()
7
+ main = do
8
+ (_: source: target: _) <- getArgs
9
+ let f ' 0' = ' 1'
10
+ f c = c
11
+ writeFile target . map f =<< readFile source
Original file line number Diff line number Diff line change
1
+ name : pre-proc
2
+ version : 999.999.999
3
+ synopsis : Checks build-tool-depends are put in PATH
4
+ license : BSD3
5
+ category : Testing
6
+ build-type : Simple
7
+ cabal-version : >= 1.10
8
+
9
+ executable zero-to-one
10
+ main-is : MyCustomPreprocessor.hs
11
+ build-depends : base, directory
12
+ default-language : Haskell2010
You can’t perform that action at this time.
0 commit comments