Skip to content

Commit

Permalink
Don't hard code arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nominolo committed Oct 20, 2008
1 parent 9336d4e commit 3dea620
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install:
$(SETUP) install

test:
./dist/build/test/test.exe
./dist/build/test_get_imports/test_get_imports $(GHC_PATH)/compiler dist-stage2 +RTS -s -RTS

clean:
$(SETUP) clean
9 changes: 6 additions & 3 deletions examples/GetImports.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import HscTypes

import Data.Maybe
import Control.Monad
import System.Environment

main = runScion $ do
liftIO $ print "hello"
setWorkingDir "../ghc/compiler"
openCabalProject "./dist-stage2"
[working_dir, dist_dir] <- io $ getArgs
setWorkingDir working_dir
liftIO $ print working_dir
io $ print dist_dir
openCabalProject dist_dir
setDynFlagsFromCabal Library
setTargetsFromCabal Library
--load LoadAllTargets
Expand Down

0 comments on commit 3dea620

Please sign in to comment.