Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
hsc2hs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Glasgow Haskell Compiler
hsc2hs
Commits
0535fe65
Commit
0535fe65
authored
May 10, 2018
by
Chaitanya Koparkar
Committed by
Ryan Scott
May 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support to read command line arguments supplied via response files (#9)
See
https://ghc.haskell.org/trac/ghc/ticket/13896
parent
36769c3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Main.hs
Main.hs
+7
-0
changelog.md
changelog.md
+5
-0
No files found.
Main.hs
View file @
0535fe65
...
...
@@ -44,6 +44,9 @@ import Data.Version ( showVersion )
import
System.Environment
(
getExecutablePath
)
import
System.FilePath
(
takeDirectory
,
(
</>
)
)
#
endif
#
if
MIN_VERSION_base
(
4
,
12
,
0
)
import
GHC.ResponseFile
(
getArgsWithResponseFiles
)
#
endif
import
Common
import
CrossCodegen
...
...
@@ -74,7 +77,11 @@ main = do
prog
<-
getProgramName
let
header
=
"Usage: "
++
prog
++
" [OPTIONS] INPUT.hsc [...]
\n
"
usage
=
usageInfo
header
options
#
if
MIN_VERSION_base
(
4
,
12
,
0
)
args
<-
getArgsWithResponseFiles
#
else
args
<-
getArgs
#
endif
let
(
fs
,
files
,
errs
)
=
getOpt
Permute
options
args
let
mode
=
foldl
(
.
)
id
fs
emptyMode
case
mode
of
...
...
changelog.md
View file @
0535fe65
## next
-
Add support to read command line arguments supplied via response files
(
[
#13896
](
https://ghc.haskell.org/trac/ghc/ticket/13388
)
)
## 0.68.2
-
Support GHC 8.2.1
...
...
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