Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alexbiehl-gc
GHC
Commits
1db94ec6
Commit
1db94ec6
authored
24 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-10-27 14:46:37 by simonmar]
remove traces
parent
c21ac4e1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/main/DriverFlags.hs
+2
-4
2 additions, 4 deletions
ghc/compiler/main/DriverFlags.hs
with
2 additions
and
4 deletions
ghc/compiler/main/DriverFlags.hs
+
2
−
4
View file @
1db94ec6
-----------------------------------------------------------------------------
-- $Id: DriverFlags.hs,v 1.1
1
2000/10/27 14:4
5:18
simonmar Exp $
-- $Id: DriverFlags.hs,v 1.1
2
2000/10/27 14:4
6:37
simonmar Exp $
--
-- Driver flags
--
...
...
@@ -62,7 +62,6 @@ processArgs :: [(String,OptKind)] -> [String] -> [String]
->
IO
[
String
]
-- returns spare args
processArgs
_spec
[]
spare
=
return
(
reverse
spare
)
processArgs
spec
args
@
((
'-'
:
arg
)
:
args'
)
spare
=
do
putStrLn
(
"processArg: "
++
arg
)
case
findArg
spec
arg
of
Just
(
rest
,
action
)
->
do
args'
<-
processOneArg
action
rest
args
...
...
@@ -115,8 +114,7 @@ processOneArg action rest (dash_arg@('-':arg):args) =
findArg
::
[(
String
,
OptKind
)]
->
String
->
Maybe
(
String
,
OptKind
)
findArg
spec
arg
=
trace
(
"findArg: "
++
arg
)
$
case
[
(
remove_spaces
rest
,
k
)
=
case
[
(
remove_spaces
rest
,
k
)
|
(
pat
,
k
)
<-
spec
,
Just
rest
<-
[
my_prefix_match
pat
arg
],
arg_ok
k
rest
arg
]
of
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment