Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (18 sloc) 0.881 kb
17192fb @creswick customized build to pull in source from cabal-install-0.8.2
authored
1 import Control.Monad ( unless )
772f802 Start of work toward a mk-repo command that creates a cabal sandbox
Josh Hoyt authored
2 import Distribution.Simple
e840749 @creswick added explicit dependency on cabal-install >= 0.8.2
authored
3 import Distribution.Simple.Program.Types ( Program(..), simpleProgram )
17192fb @creswick customized build to pull in source from cabal-install-0.8.2
authored
4 import Distribution.PackageDescription ( PackageDescription(..), executables,
5 hsSourceDirs, exeName, buildInfo )
6 import Distribution.Simple.LocalBuildInfo ( LocalBuildInfo, buildDir )
7 import Distribution.Simple.Setup ( BuildFlags, buildVerbose )
e840749 @creswick added explicit dependency on cabal-install >= 0.8.2
authored
8 import Distribution.Simple.Utils ( rawSystemExit, findProgramVersion)
17192fb @creswick customized build to pull in source from cabal-install-0.8.2
authored
9 import Distribution.Verbosity ( Verbosity )
10
11 import System.Directory ( doesDirectoryExist )
12 import System.FilePath ( (</>) )
13
14 main = defaultMainWithHooks $
e17a119 @creswick Updates for ghc-7.4.1 - bumped version bounds, cleaned up a test
authored
15 simpleUserHooks { hookedPrograms = [cabalInstallProgram]
16 }
e840749 @creswick added explicit dependency on cabal-install >= 0.8.2
authored
17
18 cabalInstallProgram :: Program
19 cabalInstallProgram = (simpleProgram "cabal") {
20 programFindVersion = findProgramVersion "--numeric-version" id
e17a119 @creswick Updates for ghc-7.4.1 - bumped version bounds, cleaned up a test
authored
21 }
Something went wrong with that request. Please try again.