Execute a Haskell Script with Arguments

Since a KM native action doesn't exist, I created this plugin that executes Haskell code with parameters. This is currently in experimental phase. I hope this gets natively implemented someday.


Gabriel @unlocked2412

Version 0.01

Execute a Haskell Script with Arguments.zip (9.8 KB)


runhaskell program should be at: /usr/local/bin/runhaskell

The script should have an interact :: (String -> String) -> IO () function to accept those arguments.

I used some of the wonderful functions in the prelude-jxa library by Rob Trew. Could be found here: https://github.com/RobTrew/prelude-jxa

The plugin currently writes a temporary .hs file.


Retrieving the second item of a KM Array: