blaze-html icon indicating copy to clipboard operation
blaze-html copied to clipboard

Release `blaze-html` with a `blaze-markup >= 0.8.3` lower bound

Open andreasabel opened this issue 2 years ago • 1 comments

blaze-markup-0.8.3 added a ToMarkup instance for non-empty strings. To be able to use toHtml on non-empty strings with blaze-html I need to explicitly depend on blaze-markup >= 0.8.3.

Sadly, GHC complains about an unused package if I do not use anything from blaze-markup directly (but just use it via blaze-html):

<no location info>: error: [GHC-42258] [-Wunused-packages, Werror=unused-packages]
    The following packages were specified via -package or -package-id flags,
    but were not needed for compilation:
      - blaze-markup-0.8.3.0 

A cure for this would be to release blaze-html with a raised lower bound on blaze-markup, so I could just bump my blaze-html bound.

Ref:

  • https://github.com/jaspervdj/blaze-markup/issues/63

andreasabel avatar Sep 26 '23 06:09 andreasabel

My workaround is to add a redundant import Text.Blaze (), which does not trigger the unused-imports warning but pacifies the unused-packages warning.

  • https://github.com/agda/agda/pull/6883

andreasabel avatar Sep 26 '23 06:09 andreasabel