首页 > 解决方案 > 什么是阴谋集团组件?

问题描述

cabal v2-repl cardano-node
cabal: Cannot open a repl for multiple components at once. The target
'cardano-node' refers to the package cardano-node-1.18.0 which includes the
libraries cardano-node-config and cardano-node.

The reason for this limitation is that current versions of ghci do not support
loading multiple components as source. Load just one component and when you
make changes to a dependent component then quit and reload.

我正在尝试输入 cabal repl,但不清楚 是什么意思component,是可执行文件还是库?如果是这样,那么我如何明确引用/“目标”可执行文件?

标签: haskellcabal

解决方案


组件是具有自己的一组依赖项等的节后面的任何内容。因此它可以是多个子库、多个可执行文件、测试套件等。您可以在组件名称前加上lib:exe:指定它是否为可执行组件(如测试套件)或库组件。

用户指南https://cabal.readthedocs.io/en/latest/setup-commands.html?highlight=component#runhaskell-setup-hs-configure中对组件进行了一些描述


推荐阅读