本文介绍了Haskell进口报关单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开始阅读有关monad转换器的文章,令我感到困惑的是 Control.Monad.CatchIO
的导入声明,我在许多代码示例中都可以看到:
I started to read about monad transformers and what puzzles me is Control.Monad.CatchIO
's import declaration which I see in many code examples:
import "MonadCatchIO-transformers" Control.Monad.CatchIO (finally)
此引用令牌是什么意思?我看了 Haskell 98报告中有关导入声明的部分,但是这没有帮助我理解.
What does this quoted token mean? I took a look at the Haskell 98 Report's section on import declarations, but this didn't help me understand.
推荐答案
它是程序包限定的导入,它是GHC扩展.该字符串是程序包名称.
Its a package-qualified import, which is a GHC extension. The string is a package name.
请参见包装-ghc文档中的合格进口商品,以获取详细信息.
See Package-qualified imports, from the ghc docs, for details.
这篇关于Haskell进口报关单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!