0

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.

jds
  • 7,910
  • 11
  • 63
  • 101
  • 3
    looks like `runhaskell` is not in your `$PATH` –  May 21 '20 at 02:14
  • Got it. Thanks. Sorry, the installer asked if I wanted to add something `ghcup`-related to my `$PATH`, but this was (clearly) not the binary. – jds May 21 '20 at 02:17
  • @MichaelLitchard You should add that as an answer. – bradrn May 21 '20 at 02:31

1 Answers1

2

looks like runhaskell is not in your $PATH