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 <rma...@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