emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Org Haskell code blocks


From: Dominik Schrempf
Subject: Re: Org Haskell code blocks
Date: Wed, 26 Oct 2022 08:24:03 +0200
User-agent: mu4e 1.8.10; emacs 28.2

Dear Ihor,

thank you, these are great news!

Syntax highlighting is not working, for example, with the following
snippet and code block:

begin_snippet

- An example of a function:

  #+begin_src haskell :exports code :results none
  f :: a -> b
  #+end_src

end_snippet

Note the indentation. The code block is indented by 2 spaces, because it
belongs to the list item above. The indentation makes the syntax
highlighting fail. It may well be that this is non-standard usage of
code blocks, but it is very convenient to preserve indentation in this
way.

I also fixed the detection of 'haskell-process-type'. It turns out, I
had some local configuration preferring 'cabal-repl', even without the
required project files. 'haskell-process-type' 'auto' works correctly, I
apologize.

Thank you for your help!

Dominik

Ihor Radchenko <yantar92@posteo.net> writes:

> Dominik Schrempf <dominik.schrempf@gmail.com> writes:
>
>> Ad scrambling: The scrambling happens with multi-line input. For example
>>
>>     #+begin_src haskell :exports both :results output
>>     let x = 10
>>     let y = 12
>>     x*y
>>     [x,y]
>>     #+end_src
>>
>>     #+results:
>>     :
>>     : ghci> 120
>>     : [10,12]
>
> I am unable to reproduce on the latest main.
> Likely because of recent fixes in ob-comint.
>
>> Do you get syntax highlighting when the source code is indented (for
>> example in list items).
>
> I have the above code fontified.
> Could you please provide an example of the code that is not being fontified?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]