Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error of current master caused by haddock-library-1.11.0 #1128

Closed
andreasabel opened this issue Aug 23, 2022 · 1 comment · Fixed by #1131
Closed

Build error of current master caused by haddock-library-1.11.0 #1128

andreasabel opened this issue Aug 23, 2022 · 1 comment · Fixed by #1131
Assignees

Comments

@andreasabel
Copy link
Member

Current master (c84f467) fails to build with GHC 9.2.4 in the latest ecosystem:

$ cabal build
Build profile: -w ghc-9.2.4 -O1
...
[ 31 of 181] Compiling Distribution.Server.Pages.Package.HaddockHtml ( ... )

src/Distribution/Server/Pages/Package/HaddockHtml.hs:27:25: error:
    • No instance for (HTML (Int, Html))
        arising from a use of ‘ordList’
    • In the ‘markupOrderedList’ field of a record
      In the expression:
        Markup
          {markupEmpty = noHtml, markupString = toHtml,
           ...
           markupOrderedList = ordList, markupDefList = defList,
          ...
           markupTable = \ (Table h r) -> makeTable h r}
      In an equation for ‘htmlMarkup’: ...
         
   |
27 |   markupOrderedList   = ordList,
   |                         ^^^^^^^

This is the used dependencies according to cabal-plan:

  Cabal-3.6.3.0
  HStringTemplate-0.8.8
  HTTP-4000.3.16
  QuickCheck-2.14.2
  array-0.5.4.0
  base-4.15.1.0
  binary-0.8.8.0
  blaze-builder-0.4.2.2
  blaze-html-0.9.1.2
  base16-bytestring-1.0.2.0
  base64-bytestring-1.2.1.0
  bytestring-0.10.12.1
  acid-state-0.16.1.1
  commonmark-0.2.2
  commonmark-extensions-0.2.3.2
  containers-0.6.4.1
  cereal-0.5.8.3
  cryptohash-md5-0.11.101.0
  cryptohash-sha256-0.11.102.1
  csv-0.1.2
  ed25519-0.0.5.0
  deepseq-1.4.5.0
  directory-1.3.6.2
  filepath-1.4.2.1
  fail-4.9.0.0
  hackage-security-0.6.2.2
  hackage-security-HTTP-0.1.1.1
  haddock-library-1.11.0
  happstack-server-7.7.2
  hashable-1.4.1.0
  hslogger-1.3.1.0
  lifted-base-0.2.3.12
  mime-mail-0.5.1
  mtl-2.2.2
  unordered-containers-0.2.19.1
  network-3.1.2.7
  network-bsd-2.8.1.0
  network-uri-2.6.4.1
  parsec-3.1.14.0
  pretty-1.1.3.6
  process-1.6.13.2
  random-1.2.1.1
  rss-3000.2.0.7
  scientific-0.3.7.0
  safecopy-0.10.4.2
  semigroups-0.19.2
  aeson-2.0.3.0
  snowball-1.0.0.1
  split-0.2.3.5
  stm-2.5.0.0
  async-2.2.4
  text-1.2.5.0
  tagged-0.8.6.1
  time-1.9.3
  tokenize-0.3.0
  tar-0.5.1.1
  transformers-0.5.6.2
  attoparsec-0.14.4
  attoparsec-iso8601-1.0.2.1
  unix-2.7.2.2
  vector-0.12.3.1
  xhtml-3000.2.2.1
  xmlgen-0.6.2.2
  xss-sanitize-0.3.7
  zlib-0.6.3.0
@andreasabel
Copy link
Member Author

andreasabel commented Aug 23, 2022

Looks like haddock-library changed the type of markupOrderedList: https://hackage.haskell.org/package/haddock-library-1.11.0/docs/Documentation-Haddock-Types.html#t:DocMarkupH

Reported:

Solution: restrict hackage-library < 1.11.

@andreasabel andreasabel self-assigned this Aug 23, 2022
@andreasabel andreasabel changed the title Build error of current master Build error of current master caused by haddock-library-1.11.0 Aug 23, 2022
AliasQli pushed a commit to AliasQli/hackage-server that referenced this issue Aug 29, 2022
gbaz added a commit that referenced this issue Jan 5, 2023
* delete unused GitHub Action; fix CI badge

* Fix #1076: separate validators from UI and doctest them (#1077)

* Cachix caching for nix-shell GitHub Action (#1081)

* Add uploaded_at field in package api (#1080)

* package page: Include virtual-modules in module tree (#1085)

* Allow hashable-1.4 and text-2.0 (#1089)

* Divide sitemap into parts

* Add sitemap link for subdirectories

* Fix `non-canonical-return` warnings

* Bump CI to GHC 9.2.3 and restrict to master branch

* Check authorisation (#1111)

* Dynamically add css piece

* Fix #1105: change order of markdown parsers to allow pipes in lists

* Fix #1128, fix #1130 by adding bounds to Cabal-syntax and haddock-library

* Bump CI to 9.2.4 and some deps

* Force .txt and .text to have UTF-8 MIME charset (#1133)

* Upgrade to haddock-library-1.11.0 (#1126)

* attempt to speed up GitHub Action for Nix Shell

* work with cabal 3.8

* Updated accepted licenses (#1092)

* Add dependabot for github workflows

* Bump cachix/cachix-action from 10 to 12

* Bump actions/checkout from 2.4.0 to 3.1.0
* Bump cachix/install-nix-action from 17 to 18

* Build with Cabal-3.8 and GHC 9.4 (#1141)

* Haskell CI: bump to Ubuntu-22.04, GHC 9.2.5 and 9.4.4

* Allow mtl-2.3 and transformers-0.6 (#1150)

* Disable test (#1124)

* allow disable tests on client side

* add deprecated version warning (#1123)

* List maintainers on package page (#1098)

* List maintainers on package page

* Vendor snowball package (#1116)

* Add searchbox metadata (#1115)

* Add captcha for user registration (#1099)

* remove filtering 00-index for cabal version < 2.0 hack (#1152)

* Add lastVersion in listings (#749) (#1140)

* rm icu dep instructions, add libgd

* Add test log display (#1100)

* Add test log

* Reverse Dependencies indexed on PackageName (#1082)

* Rebased Reverse Dependencies

* Add "Quick Jump" to candidate package page (#1122)

* Solves #1029 - Adds paging to recent packages and recent revisions (#1055)

* support for `prefers-color-scheme` (#1008)

* 2x brightness for captions and links in dark color scheme

* table dark color scheme

* prefers-color-scheme for links, footer, and table-of-contents

* paginator css for `prefers-color-scheme`

* Maintainer notifications

* cleanup partial functions for revdeps, elim use of MonadThrow, MonadCatch

* fix tests enablement link

Co-authored-by: Peter Becich <[email protected]>
Co-authored-by: Andreas Abel <[email protected]>
Co-authored-by: Hécate Moonlight <[email protected]>
Co-authored-by: Matthew Pickering <[email protected]>
Co-authored-by: ˌbodʲɪˈɡrʲim <[email protected]>
Co-authored-by: Alias Qli <[email protected]>
Co-authored-by: Ondřej Kubánek <[email protected]>
Co-authored-by: Gautier DI FOLCO <[email protected]>
Co-authored-by: Janus Troelsen <[email protected]>
Co-authored-by: Levi Butcher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant