import Distribution.Simple main :: IO () main = defaultMainWithHooks $ simpleUserHooks { preBuild = \args buildflags -> do --buildNetworks -- Ideally, the code from app/NetworkBuilder.exe would be --called here, adapted to use the proper buildpath for autogenerated --modules. Unfortunately, since it uses the Advise-Me library - the same --library that we are trying to build here - we cannot do that at the --moment. Therefore, I've set the build-type back to Custom in our cabal --configuration. This file won't be used. See #236. preBuild simpleUserHooks args buildflags }