#1014016 haskell-protobuf FTBFS: error: Couldn't match type

#1014016#5
Date:
2022-06-28 19:35:51 UTC
From:
To:
https://buildd.debian.org/status/package.php?p=haskell-protobuf&suite=sid

...
tests/Main.hs:426:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "089601"’
      In the expression: testSpecific msg =<< unhex "089601"
      In an equation for ‘test1’:
          test1
            = testSpecific msg =<< unhex "089601"
            where
                msg = Test1 {test1_a = putField 150}
    |
426 | test1 = testSpecific msg =<< unhex "089601" where
    |                              ^^^^^^^^^^^^^^

tests/Main.hs:436:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely
        ‘unhex "120774657374696e67"’
      In the expression: testSpecific msg =<< unhex "120774657374696e67"
      In an equation for ‘test2’:
          test2
            = testSpecific msg =<< unhex "120774657374696e67"
            where
                msg = Test2 {test2_b = putField "testing"}
    |
436 | test2 = testSpecific msg =<< unhex "120774657374696e67" where
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/Main.hs:444:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "1a03089601"’
      In the expression: testSpecific msg =<< unhex "1a03089601"
      In an equation for ‘test3’:
          test3
            = testSpecific msg =<< unhex "1a03089601"
            where
                msg = Test3 {test3_c = putField Test1 {test1_a = putField 150}}
    |
444 | test3 = testSpecific msg =<< unhex "1a03089601" where
    |                              ^^^^^^^^^^^^^^^^^^

tests/Main.hs:452:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely
        ‘unhex "2206038e029ea705"’
      In the expression: testSpecific msg =<< unhex "2206038e029ea705"
      In an equation for ‘test4’:
          test4
            = testSpecific msg =<< unhex "2206038e029ea705"
            where
                msg = Test4 {test4_d = putField [...]}
    |
452 | test4 = testSpecific msg =<< unhex "2206038e029ea705" where
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^

tests/Main.hs:456:36: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex ""’
      In the expression: testSpecific msg =<< unhex ""
      In an equation for ‘test4_empty’:
          test4_empty
            = testSpecific msg =<< unhex ""
            where
                msg = Test4 {test4_d = putField mempty}
    |
456 | test4_empty = testSpecific msg =<< unhex "" where
    |                                    ^^^^^^^^

tests/Main.hs:475:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex ""’
      In the expression: testSpecific msg =<< unhex ""
      In an equation for ‘test5’:
          test5
            = testSpecific msg =<< unhex ""
            where
                msg = Test5 {test5_e = putField Nothing}
    |
475 | test5 = testSpecific msg =<< unhex "" where
    |                              ^^^^^^^^

tests/Main.hs:479:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "2800"’
      In the expression: testSpecific msg =<< unhex "2800"
      In an equation for ‘test6’:
          test6
            = testSpecific msg =<< unhex "2800"
            where
                msg = Test5 {test5_e = putField $ Just Test5A}
    |
479 | test6 = testSpecific msg =<< unhex "2800" where
    |                              ^^^^^^^^^^^^

tests/Main.hs:483:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "2801"’
      In the expression: testSpecific msg =<< unhex "2801"
      In an equation for ‘test7’:
          test7
            = testSpecific msg =<< unhex "2801"
            where
                msg = Test5 {test5_e = putField $ Just Test5B}
    |
483 | test7 = testSpecific msg =<< unhex "2801" where
    |                              ^^^^^^^^^^^^

tests/Main.hs:487:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex ""’
      In the expression: testSpecific msg =<< unhex ""
      In an equation for ‘test8’:
          test8
            = testSpecific msg =<< unhex ""
            where
                msg = Test6 {test6_e = putField $ []}
    |
487 | test8 = testSpecific msg =<< unhex "" where
    |                              ^^^^^^^^

tests/Main.hs:491:30: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "3000"’
      In the expression: testSpecific msg =<< unhex "3000"
      In an equation for ‘test9’:
          test9
            = testSpecific msg =<< unhex "3000"
            where
                msg = Test6 {test6_e = putField $ [...]}
    |
491 | test9 = testSpecific msg =<< unhex "3000" where
    |                              ^^^^^^^^^^^^

tests/Main.hs:495:31: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "30003001"’
      In the expression: testSpecific msg =<< unhex "30003001"
      In an equation for ‘test10’:
          test10
            = testSpecific msg =<< unhex "30003001"
            where
                msg = Test6 {test6_e = putField $ [...]}
    |
495 | test10 = testSpecific msg =<< unhex "30003001" where
    |                               ^^^^^^^^^^^^^^^^

tests/Main.hs:499:31: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "30003000"’
      In the expression: testSpecific msg =<< unhex "30003000"
      In an equation for ‘test11’:
          test11
            = testSpecific msg =<< unhex "30003000"
            where
                msg = Test6 {test6_e = putField $ [...]}
    |
499 | test11 = testSpecific msg =<< unhex "30003000" where
    |                               ^^^^^^^^^^^^^^^^

tests/Main.hs:503:31: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "300030013000"’
      In the expression: testSpecific msg =<< unhex "300030013000"
      In an equation for ‘test12’:
          test12
            = testSpecific msg =<< unhex "300030013000"
            where
                msg = Test6 {test6_e = putField $ [...]}
    |
503 | test12 = testSpecific msg =<< unhex "300030013000" where
    |                               ^^^^^^^^^^^^^^^^^^^^

tests/Main.hs:507:31: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex ""’
      In the expression: testSpecific msg =<< unhex ""
      In an equation for ‘test13’:
          test13
            = testSpecific msg =<< unhex ""
            where
                msg = Test7 {test7_e = putField $ []}
    |
507 | test13 = testSpecific msg =<< unhex "" where
    |                               ^^^^^^^^

tests/Main.hs:511:31: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "3800"’
      In the expression: testSpecific msg =<< unhex "3800"
      In an equation for ‘test14’:
          test14
            = testSpecific msg =<< unhex "3800"
            where
                msg = Test7 {test7_e = putField $ [...]}
    |
511 | test14 = testSpecific msg =<< unhex "3800" where
    |                               ^^^^^^^^^^^^

tests/Main.hs:515:31: error:
    • Couldn't match type ‘Either String’ with ‘IO’
      Expected: IO B.ByteString
        Actual: Either String B.ByteString
    • In the second argument of ‘(=<<)’, namely ‘unhex "38003800"’
      In the expression: testSpecific msg =<< unhex "38003800"
      In an equation for ‘test15’:
          test15
            = testSpecific msg =<< unhex "38003800"
            where
                msg = Test7 {test7_e = putField $ [...]}
    |
515 | test15 = testSpecific msg =<< unhex "38003800" where
    |                               ^^^^^^^^^^^^^^^^
 at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 107.
	Debian::Debhelper::Buildsystem::Haskell::Recipes::run_quiet("debian/hlibrary.setup", "build", "--builddir=dist-ghc") called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 131
	Debian::Debhelper::Buildsystem::Haskell::Recipes::run("debian/hlibrary.setup", "build", "--builddir=dist-ghc") called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 640
	Debian::Debhelper::Buildsystem::Haskell::Recipes::build_recipe() called at -e line 1
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:153: build-ghc-stamp] Error 25

#1014016#10
Date:
2022-07-19 13:49:29 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
haskell-protobuf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1014016@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ilias Tsitsimpis <iliastsi@debian.org> (supplier of updated haskell-protobuf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 19 Jul 2022 16:38:53 +0300
Source: haskell-protobuf
Architecture: source
Version: 0.2.1.3-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Changed-By: Ilias Tsitsimpis <iliastsi@debian.org>
Closes: 862278 1014016
Changes:
 haskell-protobuf (0.2.1.3-3) unstable; urgency=medium
 .
   * Declare compliance with Debian policy 4.6.1
   * Disable testsuite which fails to be with GHC 9.0.2 (Closes: #862278,
     #1014016)
Checksums-Sha1:
 a9344e5eba13cbb83b37c0e408dfec3f6bc8ebe8 2732 haskell-protobuf_0.2.1.3-3.dsc
 e082a5287f7caff35e0d283b7d9e082a487b0bb1 3736 haskell-protobuf_0.2.1.3-3.debian.tar.xz
 537a6fa47135338bac884bfed763f54e9ac6ec32 8980 haskell-protobuf_0.2.1.3-3_amd64.buildinfo
Checksums-Sha256:
 8c142bf7f80ebcaa68cc3133d52d589f8c93812988d0d3aa4c9641362179b410 2732 haskell-protobuf_0.2.1.3-3.dsc
 c2b3ad83b583551aa1f2da0da08c43be2c5973ddbc404094c9685885dcc96dde 3736 haskell-protobuf_0.2.1.3-3.debian.tar.xz
 979cb84d0f1e8792c569b66049ae81b83ac9b2fba0a52387ed445f0d94fe65dc 8980 haskell-protobuf_0.2.1.3-3_amd64.buildinfo
Files:
 79550b5eb3f2fb11c6eeadc7c7527b90 2732 haskell optional haskell-protobuf_0.2.1.3-3.dsc
 75971cd0989350b0a1f9d1eed59d917c 3736 haskell optional haskell-protobuf_0.2.1.3-3.debian.tar.xz
 1b4dae289ba7dbc723da140c1ae51cea 8980 haskell optional haskell-protobuf_0.2.1.3-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEJ9c8pfW11+AaUTb116hngMxkQDwFAmLWtEEUHGlsaWFzdHNp
QGRlYmlhbi5vcmcACgkQ16hngMxkQDy/WQ//dmXELw0OlGsi3ekAEAKR96E5L/TP
xKKgcCxDNy57hsXGBeqljau/Avu5QOM/Vw878hllg6eAMywi17kFCnWVwvr2sFbo
n0dX8ix4EAM7aF4JHP9O/EpOC4s6nOCpDAm7tIQLNp/kyfT/5WqWe7pV8RdLNSdm
drP8cxJ09ZfnaGL5T+maOSAWtZmABlhV2Pmi0/1IO2lP0SAJL1/kUK+J8/8fh53i
RsvDvUP063lGtQu6Zfetq3AT9yzfaQ7o78J5HJ2EkdrvVc8bdQcEVd02lzF9av5E
Sw7i7Fd/+YOk82GmvDv2lWMUjGjPs99s4j10EN6g5fli2piqfAyavBTyy2xQLrXc
ol4N2fKtH776Ffz2WSX3FVjb+0a7/ETIV9hestSwQjoy/2IklIYRI6QtcsCZZbn9
ZbaRtJOd0oyeodN/DB80K6SXSl9xg4bpiFNSTqKlECd8Ipik71eFMh4IwdIdEnpN
WFeNBhDC5L0ZLXoqmlFxKgRw/NCDuGoOmzFYxDtL84md+0Nsv53byykahXGYRKuU
xL/vxLWkD4xL2640eh2VfM6FfNvyVbedHibkwoMLERY77wgxQ/mSYgoYsLfR0qBY
Tma3vfkypVAQKYDju/Az802fhBjcH4sOJQfPvnsC469S5AdRb/v1YOkqK0wnESWi
TkndOL/aJoq9c6g=
=ttZ5
-----END PGP SIGNATURE-----