【发布时间】:2012-11-04 19:30:59
【问题描述】:
有没有可能在 unix shell 脚本中使用 haskell 函数?
例如:
#!/bin/bash
...
var1=value
...
# use haskell function with input from shell variable var1
# and store the result into another shell variable var2
var2=haskellFunction $var1
...
我想在 shell 脚本中使用变量作为 haskell 函数的参数和结果
提前致谢。
吉米
【问题讨论】:
-
我的蜘蛛感觉告诉我,我读到有人写了一个包,用于轻松编写来自 Haskell 的类似 shell 的东西的脚本......但我不记得它的任何细节。 :-(
-
@MathematicalOrchid Shelly?
-
@dave4420 是的,可能就是这样......
标签: shell unix haskell scripting interaction