Skip to content

Commit

Permalink
Use Setup.hs like everyone else does
Browse files Browse the repository at this point in the history
and note the issue about custom vs simple build-type for Cabal itself.
  • Loading branch information
dcoutts committed Jan 31, 2008
1 parent ed7e0e5 commit f2a5be5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 0 additions & 1 deletion DefaultSetup.hs
@@ -1,3 +1,2 @@
module Main where
import Distribution.Simple
main = defaultMain
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -28,7 +28,7 @@ all: build

setup::
mkdir -p dist/tmp
$(HC) $(GHCFLAGS) -i. -odir dist/tmp -hidir dist/tmp Setup.lhs -o setup
$(HC) $(GHCFLAGS) -i. -odir dist/tmp -hidir dist/tmp Setup.hs -o setup

Setup-nhc:
hmake -nhc98 -package base -prelude Setup
Expand Down
10 changes: 10 additions & 0 deletions Setup.hs
@@ -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.
8 changes: 0 additions & 8 deletions Setup.lhs

This file was deleted.

0 comments on commit f2a5be5

Please sign in to comment.