微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用 cabal 时如何配置 haskell 摇篮?

如何解决使用 cabal 时如何配置 haskell 摇篮?

我已经阅读了 cradle 的官方文档。但是当我按照文档中的说明进行操作时,出现错误

Failed to parse result of calling cabal

cabal: Internal error in target matching. It should always be possible to find
a Syntax that's sufficiently qualified to give an unambiguous match. However
when matching 'lib:hie-bios' we found lib:hie-bios (unkNown-component) which
does not have an unambiguous Syntax. The possible Syntax and the targets they
match are as follows:
'lib:hie-bios' which matches lib:hie-bios (unkNown-component),:pkg:lib:lib:lib:file:hie-bios (unkNown-file)

解决方法

也许可以尝试使用 implicit-hiegen-hie

它涵盖了大多数案例,甚至是一些非传统的 monorepo 案例。在任何情况下 - 该工具都有助于了解摇篮的语法和配置。

请注意,该工具当前通过查看存在的构建目录 (dist-newstyle,.stack-work) 来确定摇篮

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。