alexwl/haskell-code-explorer

Fails to build

Opened this issue · 1 comments

The Glorious Glasgow Haskell Compilation System, version 8.4.4

onfiguring library for haskell-code-explorer-0.1.0.0..
Warning: Packages using 'cabal-version: >= 1.10' must specify the
'default-language' field for each component (e.g. Haskell98 or Haskell2010).
If a component uses different languages in different modules then list the
other ones in the 'other-languages' field.
Preprocessing library for haskell-code-explorer-0.1.0.0..
Building library for haskell-code-explorer-0.1.0.0..
[1 of 7] Compiling HaskellCodeExplorer.Types ( src/HaskellCodeExplorer/Types.hs, /home/maerwald/git/haskell-code-explorer/dist-newstyle/build/x86_64-linux/ghc-8.4.4/haskell-code-explorer-0.1.0.0/build/HaskellCodeExplorer/Types.o )
[2 of 7] Compiling HaskellCodeExplorer.Preprocessor ( src/HaskellCodeExplorer/Preprocessor.hs, /home/maerwald/git/haskell-code-explorer/dist-newstyle/build/x86_64-linux/ghc-8.4.4/haskell-code-explorer-0.1.0.0/build/HaskellCodeExplorer/Preprocessor.o )
[3 of 7] Compiling HaskellCodeExplorer.GhcUtils ( src/HaskellCodeExplorer/GhcUtils.hs, /home/maerwald/git/haskell-code-explorer/dist-newstyle/build/x86_64-linux/ghc-8.4.4/haskell-code-explorer-0.1.0.0/build/HaskellCodeExplorer/GhcUtils.o )

src/HaskellCodeExplorer/GhcUtils.hs:1113:10: error:
    • Couldn't match type ‘String
                           -> Documentation.Haddock.Types.MetaDoc
                                mod0 Documentation.Haddock.Parser.Identifier’
                     with ‘Documentation.Haddock.Types.MetaDoc
                             (ModuleName, OccName) Documentation.Haddock.Parser.Identifier’
      Expected type: [HsDocString]
                     -> Documentation.Haddock.Types.MetaDoc
                          (ModuleName, OccName) Documentation.Haddock.Parser.Identifier
        Actual type: [HsDocString]
                     -> String
                     -> Documentation.Haddock.Types.MetaDoc
                          mod0 Documentation.Haddock.Parser.Identifier
    • Probable cause: ‘(.)’ is applied to too few arguments
      In the second argument of ‘(.)’, namely
        ‘parseParas . concatMap (unpackFS . (\ (HsDocString s) -> s))’
      In the second argument of ‘(.)’, namely
        ‘_doc
           . parseParas . concatMap (unpackFS . (\ (HsDocString s) -> s))’
      In the second argument of ‘(.)’, namely
        ‘overIdentifier (parseIdent flags)
           . _doc
               . parseParas . concatMap (unpackFS . (\ (HsDocString s) -> s))’
     |
1113 |   _doc . parseParas . concatMap (unpackFS . (\(HsDocString s) -> s))
     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/HaskellCodeExplorer/GhcUtils.hs:1113:23: error:
    • Couldn't match type ‘[Char]’
                     with ‘Maybe Documentation.Haddock.Types.Package’
      Expected type: [HsDocString]
                     -> Maybe Documentation.Haddock.Types.Package
        Actual type: [HsDocString] -> [Char]
    • In the second argument of ‘(.)’, namely
        ‘concatMap (unpackFS . (\ (HsDocString s) -> s))’
      In the second argument of ‘(.)’, namely
        ‘parseParas . concatMap (unpackFS . (\ (HsDocString s) -> s))’
      In the second argument of ‘(.)’, namely
        ‘_doc
           . parseParas . concatMap (unpackFS . (\ (HsDocString s) -> s))’
     |
1113 |   _doc . parseParas . concatMap (unpackFS . (\(HsDocString s) -> s))
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build haskell-code-explorer-0.1.0.0 (which is required by
exe:haskell-code-indexer from haskell-code-explorer-0.1.0.0).

I've added cabal.project.freeze (for ghc-8.4.4): b5a3048.

cabal new-build all command builds everything correctly (cabal new-build doesn't build cabal-helper-wrapper executable which leads to a runtime error from haskell-code-indexer).