简体   繁体   English

Haskell cabal + hsc2hs

[英]Haskell cabal+hsc2hs

Can cabal use hsc2hs to create hs files? cabal可以使用hsc2hs来创建hs文件吗? How? 怎么样?

I didn't find an answer in the manuals, googling, nor in other projects (had my hopes up for gtk2hs but it turns out that it doesn't use cabal) 我没有在手册,谷歌搜索中找到答案,也没有在其他项目中找到答案(我的希望是gtk2hs,但事实证明它不使用cabal)

Yes, cabal understands that when you list module Foo in your .cabal file, and it finds Foo.hsc on disk, that it must run hsc2hs on the module first. 是的,cabal了解当你在.cabal文件中列出模块Foo,并且它在磁盘上找到Foo.hsc时,它必须首先在模块上运行hsc2hs。

Cabal transparently handles the existence of .hsc files. Cabal透明地处理.hsc文件的存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM