[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Haskell code blocks
From: |
Jarmo Hurri |
Subject: |
Re: Haskell code blocks |
Date: |
Sat, 22 Oct 2022 08:06:04 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Greetings Thomas.
"Thomas S. Dye" <tsd@tsdye.online> writes:
> I'm struggling to write a minimal ob-doc-haskell.org for Worg.
>
> The obligatory Hello World! example yields bad results.
>
> #+name: haskell-hello-world
> #+begin_src haskell
>
> main :: IO ()
> main = putStrLn "Hello, World!"
> main
> #+end_src
>
> #+RESULTS: haskell-hello-world
> : Prelude> Hello, World!
The good ole obligatory part is fulfilled by including ":session none":
#+name: haskell-hello-world
#+begin_src haskell :session none
main :: IO ()
main = putStrLn "Hello, World!"
main
#+end_src
#+RESULTS: haskell-hello-world
: Hello, World!
All the best,
Jarmo
- Re: Haskell code blocks,
Jarmo Hurri <=