Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,322
Issues
4,322
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
361
Merge Requests
361
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d255dfff
Commit
d255dfff
authored
Nov 10, 2003
by
simonpj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2003-11-10 12:04:25 by simonpj]
Better error message for ghc --show-iface, with no file supplied
parent
3206cccb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ghc/compiler/main/DriverFlags.hs
ghc/compiler/main/DriverFlags.hs
+1
-1
ghc/compiler/main/DriverUtil.hs
ghc/compiler/main/DriverUtil.hs
+4
-1
No files found.
ghc/compiler/main/DriverFlags.hs
View file @
d255dfff
...
...
@@ -93,7 +93,7 @@ processOneArg action rest (dash_arg@('-':arg):args) =
if
rest
/=
""
then
fio
rest
>>
return
args
else
case
args
of
[]
->
unknownFla
gErr
dash_arg
[]
->
missingAr
gErr
dash_arg
(
arg1
:
args1
)
->
fio
arg1
>>
return
args1
SepArg
fio
->
...
...
ghc/compiler/main/DriverUtil.hs
View file @
d255dfff
-----------------------------------------------------------------------------
-- $Id: DriverUtil.hs,v 1.
39 2003/08/20 15:07:57 simonmar
Exp $
-- $Id: DriverUtil.hs,v 1.
40 2003/11/10 12:04:25 simonpj
Exp $
--
-- Utils for the driver
--
...
...
@@ -101,6 +101,9 @@ unknownFlagErr f = throwDyn (UsageError ("unrecognised flag: " ++ f))
unknownFlagsErr
::
[
String
]
->
a
unknownFlagsErr
fs
=
throwDyn
(
UsageError
(
"unrecognised flags: "
++
unwords
fs
))
missingArgErr
::
String
->
a
missingArgErr
f
=
throwDyn
(
UsageError
(
"missing argument for flag: "
++
f
))
my_partition
::
(
a
->
Maybe
b
)
->
[
a
]
->
([(
a
,
b
)],[
a
])
my_partition
_
[]
=
(
[]
,
[]
)
my_partition
p
(
a
:
as
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment