1 {-# LANGUAGE OverloadedStrings #-}
2 import Test
.Cabal
.Prelude
3 import Test
.Cabal
.DecodeShowBuildInfo
5 import Control
.Monad
.Trans
.Reader
8 runShowBuildInfo
["exe:A"]
10 assertComponent
"A" (exe
"A")
12 { sourceFiles
= ["Main.hs"]
13 , sourceDirs
= ["src"]
14 -- does not list lib as a target
15 , compilerArgsPred
= all (/= "A-0.1.0.0-inplace")
18 cabal
' "v2-build" ["exe:A", "--disable-build-info"]
20 Just plan
<- fmap testPlan ask
21 let fp
= buildInfoFile plan
"A" (exe
"A")