projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f39ff24
)
A little abstraction
author
basvandijk@home.nl
<unknown>
Thu, 19 Oct 2006 15:23:28 +0000
(15:23 +0000)
committer
basvandijk@home.nl
<unknown>
Thu, 19 Oct 2006 15:23:28 +0000
(15:23 +0000)
compiler/main/DriverPipeline.hs
patch
|
blob
|
history
diff --git
a/compiler/main/DriverPipeline.hs
b/compiler/main/DriverPipeline.hs
index
9e33f51
..
fddeb6d
100644
(file)
--- a/
compiler/main/DriverPipeline.hs
+++ b/
compiler/main/DriverPipeline.hs
@@
-416,9
+416,7
@@
runPipeline stop_phase dflags (input_fn, mb_phase) output maybe_loc
let (basename, suffix) = splitFilename input_fn
-- If we were given a -x flag, then use that phase to start from
let (basename, suffix) = splitFilename input_fn
-- If we were given a -x flag, then use that phase to start from
- start_phase
- | Just x_phase <- mb_phase = x_phase
- | otherwise = startPhase suffix
+ start_phase = fromMaybe (startPhase suffix) mb_phase
-- We want to catch cases of "you can't get there from here" before
-- we start the pipeline, because otherwise it will just run off the
-- We want to catch cases of "you can't get there from here" before
-- we start the pipeline, because otherwise it will just run off the