问题描述
我已经阅读了 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-hie 的 gen-hie
。
它涵盖了大多数案例,甚至是一些非传统的 monorepo 案例。在任何情况下 - 该工具都有助于了解摇篮的语法和配置。
请注意,该工具当前通过查看存在的构建目录 (dist-newstyle
,.stack-work
) 来确定摇篮