runghc和runhaskell有什么区别? [英] What's the difference between runghc and runhaskell?

查看:454
本文介绍了runghc和runhaskell有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RWH突然开始使用runhaskell而不是runghc。有什么不同?据我所知,他们的工作原理是一样的。

>可以运行您在系统上使用的任何Haskell解释器 - 它不一定非得是GHCi。例如, 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆