* (no subject)
@ 2022-01-20 14:13 Roger Mason
2022-01-20 19:57 ` Immanuel Litzroth
0 siblings, 1 reply; 3+ messages in thread
From: Roger Mason @ 2022-01-20 14:13 UTC (permalink / raw)
To: Org Mode Mailing List
Hello,
I want to run stack ghci from haskell blocks in org-mode. For the
task at I need to start ghci with command line option
-XFlexibleContexts. I have this in my org-mode buffer:
#+begin_src emacs-lisp :results none
(setq haskell-process-type 'stack-ghci)
(setq haskell-process-args-stack-ghci (list "--ghci-options -XFlexibleContexts"))
#+end_src
but I get
Process haskell exited abnormally with code 1
Invalid option `--ghci-options -XFlexibleContexts'
in the inferior haskell buffer.
Does anyone know how to do what I want?
Thanks,
Roger
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:
2022-01-20 14:13 Roger Mason
@ 2022-01-20 19:57 ` Immanuel Litzroth
2022-01-20 19:58 ` Re: Roger Mason
0 siblings, 1 reply; 3+ messages in thread
From: Immanuel Litzroth @ 2022-01-20 19:57 UTC (permalink / raw)
To: Roger Mason; +Cc: Org Mode Mailing List
Just going by what I see, not having tried it:
(setq haskell-process-args-stack-ghci (list "--ghci-options"
"-XFlexibleContexts"))
In your version the process gets 1 argument (with a space in it). In
my version it gets 2 args.
Immanuel
On Thu, Jan 20, 2022 at 8:22 PM Roger Mason <rmason@mun.ca> wrote:
>
> Hello,
>
> I want to run stack ghci from haskell blocks in org-mode. For the
> task at I need to start ghci with command line option
> -XFlexibleContexts. I have this in my org-mode buffer:
>
> #+begin_src emacs-lisp :results none
> (setq haskell-process-type 'stack-ghci)
> (setq haskell-process-args-stack-ghci (list "--ghci-options -XFlexibleContexts"))
> #+end_src
>
> but I get
>
> Process haskell exited abnormally with code 1
> Invalid option `--ghci-options -XFlexibleContexts'
>
> in the inferior haskell buffer.
>
> Does anyone know how to do what I want?
>
> Thanks,
> Roger
>
--
-- A man must either resolve to point out nothing new or to become a
slave to defend it. -- Sir Isaac Newton
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:
2022-01-20 19:57 ` Immanuel Litzroth
@ 2022-01-20 19:58 ` Roger Mason
0 siblings, 0 replies; 3+ messages in thread
From: Roger Mason @ 2022-01-20 19:58 UTC (permalink / raw)
To: Immanuel Litzroth; +Cc: Org Mode Mailing List
Immanuel Litzroth <immanuel.litzroth@gmail.com> writes:
> Just going by what I see, not having tried it:
> (setq haskell-process-args-stack-ghci (list "--ghci-options"
> "-XFlexibleContexts"))
>
> In your version the process gets 1 argument (with a space in it). In
> my version it gets 2 args.
> Immanuel
Indeed, that was it. Many thanks,
Roger
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-20 23:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-20 14:13 Roger Mason
2022-01-20 19:57 ` Immanuel Litzroth
2022-01-20 19:58 ` Re: Roger Mason
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).