Skip to content

Failed to build bytesmith-0.3.14.0 #39

@paolo-mo

Description

@paolo-mo

Recent bytesmith update to 0.3.14.0 may have broken something as I have the error below with ghc 9.6.7 on Windows

Adding bytesmith <= 0.3.13.0,
to build-depends: in a cabal file, fixes the issue the issues at the moment in a project using ip-1.7.8 which depends on this package.

Any help on this matter will be greatly appreciated. Thanks.


Resolving dependencies...
Build profile: -w ghc-9.6.7 -O1
In order, the following will be built (use -v for more details):

  • bytesmith-0.3.14.0 (lib) (first run)
    Configuring library for bytesmith-0.3.14.0...
    Preprocessing library for bytesmith-0.3.14.0...
    Building library for bytesmith-0.3.14.0...
    [ 1 of 12] Compiling Data.Bytes.Parser.Internal ( src\Data\Bytes\Parser\Internal.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Internal.o )
    [ 2 of 12] Compiling Data.Bytes.Parser.Rebindable ( src\Data\Bytes\Parser\Rebindable.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Rebindable.o )
    [ 3 of 12] Compiling Data.Bytes.Parser.Types ( src\Data\Bytes\Parser\Types.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Types.o )
    [ 4 of 12] Compiling Data.Bytes.Parser.Unsafe ( src\Data\Bytes\Parser\Unsafe.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Unsafe.o )
    [ 5 of 12] Compiling Data.Bytes.Parser ( src\Data\Bytes\Parser.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser.o )
    [ 6 of 12] Compiling Data.Bytes.Parser.LittleEndian ( src\Data\Bytes\Parser\LittleEndian.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\LittleEndian.o )

src\Data\Bytes\Parser\LittleEndian.hs:46:1: warning: [-Wunused-imports]
The import of Control.Applicative' is redundant except perhaps to import instances from Control.Applicative'
To import instances alone, use: import Control.Applicative()
|
46 | import Control.Applicative (liftA2)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 7 of 12] Compiling Data.Bytes.Parser.Leb128 ( src\Data\Bytes\Parser\Leb128.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Leb128.o )
[ 8 of 12] Compiling Data.Bytes.Parser.Latin ( src\Data\Bytes\Parser\Latin.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Latin.o )
[ 9 of 12] Compiling Data.Bytes.Parser.BigEndian ( src\Data\Bytes\Parser\BigEndian.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\BigEndian.o )
[10 of 12] Compiling Data.Bytes.Parser.Base128 ( src\Data\Bytes\Parser\Base128.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Base128.o )
[11 of 12] Compiling Data.Bytes.Parser.Ascii ( src\Data\Bytes\Parser\Ascii.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Ascii.o )

src\Data\Bytes\Parser\Ascii.hs:115:21: error: [GHC-83865]
* Couldn't match expected type Data.Text.Array.Array' with actual type PM.ByteArray'
* In the first argument of Text', namely arr'
In the first argument of pure', namely (Text arr off len)'
In the expression: pure (Text arr off len)
|
115 | then pure (Text arr off len)
| ^^^
[12 of 12] Compiling Data.Bytes.Parser.Utf8 ( src\Data\Bytes\Parser\Utf8.hs, \bytesmith-0.3.14.0\dist-newstyle\build\x86_64-windows\ghc-9.6.7\bytesmith-0.3.14.0\build\Data\Bytes\Parser\Utf8.o )
Error: [Cabal-7125]
Failed to build bytesmith-0.3.14.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions