forked from haskell/cabal
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Setup.hs like everyone else does
and note the issue about custom vs simple build-type for Cabal itself.
- Loading branch information
Showing
4 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
module Main where | ||
import Distribution.Simple | ||
main = defaultMain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Distribution.Simple | ||
main :: IO () | ||
main = defaultMain | ||
|
||
-- Although this looks like the Simple build type, it is in fact vital that | ||
-- we use this Setup.hs because it'll get compiled against the local copy | ||
-- of the Cabal lib, thus enabling Cabal to bootstrap itself without relying | ||
-- on any previous installation. This also means we can use any new features | ||
-- immediately because we never have to worry about building Cabal with an | ||
-- older version of itself. |