runghc和runhaskell有什么区别? [英] What's the difference between runghc and runhaskell?
本文介绍了runghc和runhaskell有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
runhaskell
可以指向 runhugs
或 runjhc
或者其他任何东西。 基本上,它只是一个很好的别名。通过使用它,您可以更轻松地更改将来使用的编译器。毕竟,如果 runghc
运行 jhc
反而会让人困惑!
RWH suddenly started using runhaskell instead of runghc. What's the difference? As far as I can tell, they work the same.
解决方案
runhaskell
can run whatever Haskell interpreter you're using on your system—it does not necessarily have to be GHCi. For example, runhaskell
could instead point to runhugs
or runjhc
or whatever, if appropriate.
Essentially, it's just a nice alias. By using it, you make it much easier to change which compiler you're using in the future. After all, having runghc
run jhc
instead would be confusing!
这篇关于runghc和runhaskell有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文