Skip to content

Commit

Permalink
Allow passing command line args to ghci (closes #121).
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Feb 9, 2013
1 parent 48dc5cb commit d9474f8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions haskell-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
:group 'haskell
:type '(choice string (repeat string)))

(defcustom haskell-process-args-ghci
'()
"Any arguments for starting cabal-ghci."
:group 'haskell
:type '(choice list))

(defcustom haskell-process-type
'ghci
"The inferior Haskell process type to use."
Expand Down Expand Up @@ -518,9 +524,11 @@ to be loaded by ghci."
('ghci
(haskell-process-log (format "Starting inferior GHCi process %s ..."
haskell-process-path-ghci))
(start-process (haskell-session-name session)
nil
haskell-process-path-ghci))
(apply #'start-process
(append (list (haskell-session-name session)
nil
haskell-process-path-ghci)
haskell-process-args-ghci)))
('cabal-ghci
(haskell-process-log (format "Starting inferior cabal-ghci process using %s ..."
haskell-process-path-cabal-ghci))
Expand Down

0 comments on commit d9474f8

Please sign in to comment.