"objects//*.o" %> \out -> do
let c = dropDirectory1 $ out -<.> "cxx"
let m = out -<.> "m"
-- let i = command [] "pkg-config" ["glib-2.0","--cflags"]
-- Stdout i <- command [] "pkg-config" ["glib-2.0","--cflags"]
Stdout i <- command [] "pkg-config" ["glib-2.0","--cflags"] :: Action
need i
() <- cmd "c++ -c" [c] "-o" [out] "-MMD -MF" [m] [i]
needMakefileDependencies m
I get this error:
Build.hs:31:72: error:
* Expecting one more argument to `Action'
Expected a type, but `Action' has kind `* -> *'
* In an expression type signature: Action
In a stmt of a 'do' block:
Stdout i <- command [] "pkg-config" ["glib-2.0", "--cflags"] ::
Action
In the expression:
do { let c = dropDirectory1 $ out -<.> "cxx";
let m = out -<.> "m";
Stdout i <- command [] "pkg-config" ["glib-2.0", ....] :: Action;
need i;
.... }
Will someone please tell me where I am going wrong?
Thanks.