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

Adrian Bunk bunk at debian.org
Tue Jun 28 20:35:51 BST 2022


Source: haskell-protobuf
Version: 0.2.1.3-2
Severity: serious
Tags: ftbfs bookworm sid

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


More information about the Pkg-haskell-maintainers mailing list