I've added a putStrLn "Hello"
line into main
function of my Setup.lhs and was expecting to see it when running cabal configure
or cabal build
. But i did not.
Then i've compiled Setup.lhs
with ghc --make
and ran ./Setup configure
and the line was shown.
If it's done intentionnaly, i don't see rationale behind this and even need in Setup.lhs
file at all. Can you clear these things for me?