I am trying to run the Haskell script in this StackOverflow answer. Pandoc appears to execute the runhaskell
executable because I get the error
Could not find executable runhaskell
Seems like I need Haskell. So I google "install haskell", go to haskell.org, and follow the install instructions. It appears to install correctly. For example, I now have a $HOME/.ghcup/
directory and the stack
command works. However, runhaskell
still does not work. When I search Haskell Tool Stack, I don't see any meaningful hits. However, there is a stack
command called runhaskell
. When I add stack runhaskell
to the top of chapter.hs
from the previous post, I get the same error.
I even tried following a "hello world" for Haskell but the first step, using ghci
, fails. So maybe I didn't even install the Haskell Platform correctly.
Feels like a really stupid issue, but I can't figure out how to install the executable runhaskell
which, I assume, will run a Haskell program.