Skip to content

Commit 6e19976

Browse files
committed
Allow multiple ghc-options for ghci command (fixes #758)
Pinging @chrisdone @ndmitchell
1 parent 5ad7085 commit 6e19976

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Stack/Options.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,9 @@ ghciOptsParser = GhciOpts
380380
(metavar "TARGET" <>
381381
help ("If none specified, " <>
382382
"use all packages defined in current directory"))))
383-
<*> argsOption (long "ghc-options" <>
383+
<*> fmap concat (many (argsOption (long "ghc-options" <>
384384
metavar "OPTION" <>
385-
help "Additional options passed to GHCi" <>
386-
value [])
385+
help "Additional options passed to GHCi")))
387386
<*> strOption (long "with-ghc" <>
388387
metavar "GHC" <>
389388
help "Use this command for the GHC to run" <>

0 commit comments

Comments
 (0)