Skip to content

Support haddock-library-1.11 in ghcide #3222

Closed
@Bodigrim

Description

@Bodigrim

Currently it fails with

[24 of 73] Compiling Development.IDE.Spans.Common

src/Development/IDE/Spans/Common.hs:182:87: error:
    • Couldn't match type: (Int, H.DocH String String)
                     with: H.DocH String String
      Expected: [H.DocH String String]
        Actual: [(Int, H.DocH String String)]
    • In the second argument of ‘map’, namely ‘things’
      In the second argument of ‘($)’, namely
        ‘map
           (("1. " ++) . trimStart . splitForList . haddockToMarkdown) things’
      In the second argument of ‘(:)’, namely
        ‘(unlines
            $ map
                (("1. " ++) . trimStart . splitForList . haddockToMarkdown)
                things)’
    |
182 |   = '\n' : (unlines $ map (("1. " ++) . trimStart . splitForList . haddockToMarkdown) things)
    |                                                                                       ^^^^^^
Error: cabal: Failed to build ghcide-1.8.0.0 (which is required by
test:ghcide-tests from ghcide-1.8.0.0).

Cf. haskell/haddock#1523

Metadata

Metadata

Assignees

No one assigned

    Labels

    GHCissues with particular GHC versionspriority: highHigh priority itemtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions