Cabal-Install失去了其构建输出的信息质量

时间:2014-02-20 06:06:00

标签: haskell ghc cabal cabal-install

我怀疑这是ghccabal-install

的问题

我曾经以这种格式获取构建信息:

Resolving dependencies...
    Configuring ltk-0.8.0.6...
    Building ltk-0.8.0.6...
    Preprocessing library ltk-0.8.0.6...
    [ 1 of 12] Compiling Graphics.UI.Frame.Panes ( src/Graphics/UI/Frame/Panes.hs, dist/build/Graphics/UI/Frame/Panes.o )
    [ 2 of 12] Compiling Graphics.UI.Editor.Parameters ( src/Graphics/UI/Editor/Parameters.hs, dist/build/Graphics/UI/Editor/Parameters.o )
    [ 3 of 12] Compiling Control.Event    ( src/Control/Event.hs, dist/build/Control/Event.o )
    [ 4 of 12] Compiling MyMissing        ( src/MyMissing.hs, dist/build/MyMissing.o )
    [ 5 of 12] Compiling Graphics.UI.Editor.Basics ( src/Graphics/UI/Editor/Basics.hs, dist/build/Graphics/UI/Editor/Basics.o )
    [ 6 of 12] Compiling Graphics.UI.Editor.MakeEditor ( src/Graphics/UI/Editor/MakeEditor.hs, dist/build/Graphics/UI/Editor/MakeEditor.o )
    [ 7 of 12] Compiling Text.PrinterParser ( src/Text/PrinterParser.hs, dist/build/Text/PrinterParser.o )

但是,现在我得到了这种类型的构建输出:

Configuring binary-shared-0.8.3...
Configuring cairo-0.12.5.1...
Building binary-shared-0.8.3...
Building cairo-0.12.5.1...
Installed binary-shared-0.8.3
Configuring ghc-paths-0.1.0.9...
Building ghc-paths-0.1.0.9...
Installed ghc-paths-0.1.0.9
Configuring glib-0.12.5.0...

正如您所看到的,cabal-installghc,无论哪个导致问题,现在似乎都在引发不良的简化。根据我的cabal配置,我运行的默认详细级别为1.是否有一些配置选项可能导致此特定行为?换句话说,我该如何恢复原来的行为?版本1.18.0.2

1 个答案:

答案 0 :(得分:5)

感谢@Michael Snoyman指出配置jobs参数或将其显式传递为-j标志会将与构建输出相关的大部分信息重定向到文本文件。有关详细信息here.

相关问题