Skip to content

add a flag to specify which executables will be installed. #1061

Open
VictorDenisov opened this Issue Oct 7, 2012 · 1 comment

2 participants

@VictorDenisov

Sometimes I create auxiliary binaries which are not tests per se, but they can help to test library. I don't want them to be copied anywhere when I run cabal install.

@VictorDenisov

We can actually prevent a binary from being installed using something like:

main = defaultMainWithHooks (simpleUserHooks { preInst = myPreInst })

myPreInst a f = return (Nothing, [("Test", mempty { buildable = False})])

But I'm not sure it's quite obvious.

@ttuegel ttuegel added this to the _|_ milestone Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.