Структурированный режим Haskell не удается установить - PullRequest
0 голосов
/ 21 сентября 2018

Я пытаюсь обновить мой структурированный режим haskell с помощью команды установки cabal.К сожалению, он не работает

obelix:~ rk$ cabal install structured-haskell-mode
Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Resolving dependencies...
Starting     structured-haskell-mode-1.1.0
Building     structured-haskell-mode-1.1.0
Failed to install structured-haskell-mode-1.1.0
Build log ( /Users/rk/.cabal/logs/ghc-8.4.3/structured-haskell-mode-1.1.0-BtZnu5PUgZA64b8d6lKBIV.log ):
cabal: Entering directory '/var/folders/m7/cw4w1yc11pv_t25pmlyqc4qm0000gn/T/cabal-tmp-1494/structured-haskell-mode-1.1.0'
Configuring structured-haskell-mode-1.1.0...
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Preprocessing executable 'structured-haskell-mode' for structured-haskell-mode-1.1.0..
Building executable 'structured-haskell-mode' for structured-haskell-mode-1.1.0..
[1 of 1] Compiling Main             ( src/Main.hs, dist/build/structured-haskell-mode/structured-haskell-mode-tmp/Main.o )

src/Main.hs:165:18: error:
    • The constructor ‘Deriving’ should have 3 arguments, but has been given 2
    • In the pattern: Deriving _ ds@(_ : _)
      In the pattern: Just (Deriving _ ds@(_ : _))
      In a case alternative:
          Just (Deriving _ ds@(_ : _))
            -> [spanHSE
                  (show "InstHeads")
                  "InstHeads"
                  (SrcSpan
                     (srcSpanFilename start)
                     (srcSpanStartLine start)
                     (srcSpanStartColumn start)
                     (srcSpanEndLine end)
                     (srcSpanEndColumn end)) |
                  Just (IRule _ _ _ (IHCon (SrcSpanInfo start _) _)) <- [listToMaybe
                                                                           ds],
                  Just (IRule _ _ _ (IHCon (SrcSpanInfo end _) _)) <- [listToMaybe
                                                                         (reverse ds)]]
    |
165 |            Just (Deriving _ ds@(_:_)) ->
    |                  ^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/var/folders/m7/cw4w1yc11pv_t25pmlyqc4qm0000gn/T/cabal-tmp-1494/structured-haskell-mode-1.1.0'
cabal: Error: some packages failed to install:
structured-haskell-mode-1.1.0-BtZnu5PUgZA64b8d6lKBIV failed during the
building phase. The exception was:
ExitFailure 1

Кажется, он вызывает конструктор Deriving с неправильным количеством аргументов.Любые предложения для быстрого исправления?

...