haskell / text

Haskell library for space- and time-efficient operations over Unicode text.

Home Page:http://hackage.haskell.org/package/text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haddocks for text-2.0.2 don't build for ghc-8.4.4

ysangkok opened this issue · comments

Desire: run cabal haddock to generate documentation for the text package
Expected outcome: Documentation successfully generated in HTML form upon execution.
Actual outcome:

% cabal --version
cabal-install version 3.10.1.0
compiled using version 3.10.1.0 of the Cabal library
% cabal get text-2.0.2
Downloading  text-2.0.2
Downloaded   text-2.0.2
Unpacking to text-2.0.2/
% cd text-2.0.2
% cabal haddock -w ghc-8.4.4
Resolving dependencies...
Build profile: -w ghc-8.4.4 -O1
In order, the following will be built (use -v for more details):
 - text-2.0.2 (lib) (first run)
Configuring library for text-2.0.2..
Preprocessing library for text-2.0.2..
Running Haddock on library for text-2.0.2..
[...]
src/Data/Text/Internal.hs:67:5: error:
    parse error on input ‘{-# UNPACK’
   |
67 |     {-# UNPACK #-} !Int     -- ^ offset in bytes (not in Char!), pointing to a start of UTF-8 sequence
   |     ^^^^^^^^^^
Error: cabal: Failed to build documentation for text-2.0.2.

Blocks:

To be honest, I do not really care about bugs in outdated Haddock executables. There is no particular reason to generate documentation with GHC 8.4, just disable relevant steps.

All right, I will close this then!