emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Immanuel Litzroth <immanuel.litzroth@gmail.com>
To: Roger Mason <rmason@mun.ca>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re:
Date: Thu, 20 Jan 2022 20:57:01 +0100	[thread overview]
Message-ID: <CAM1nAcxOsmBG2v7fTGH64n56VgDQ-2se9Pj8ZudXeeYcOPpKYw@mail.gmail.com> (raw)
In-Reply-To: <y65pmomqygy.fsf@mun.ca>

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


  reply	other threads:[~2022-01-20 23:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20 14:13 Roger Mason
2022-01-20 19:57 ` Immanuel Litzroth [this message]
2022-01-20 19:58   ` Roger Mason
  -- strict thread matches above, loose matches on Subject: below --
2008-08-06 15:50 Re:  Michaël Parienti
2008-08-06 16:57 ` Re: Paul R
2007-04-04 19:09 (unknown) Jost Burkardt
2007-04-05  0:26 ` Jason F. McBrayer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM1nAcxOsmBG2v7fTGH64n56VgDQ-2se9Pj8ZudXeeYcOPpKYw@mail.gmail.com \
    --to=immanuel.litzroth@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rmason@mun.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).