Resolving dependencies... Build profile: -w ghc-9.6.3 -O0 In order, the following will be built (use -v for more details): - phkdf-0.0.0.0 (lib:phkdf) (requires build) - g3p-hash-1.0.0.2 (first run) Starting phkdf-0.0.0.0 (all, legacy fallback) Building phkdf-0.0.0.0 (all, legacy fallback) Installing phkdf-0.0.0.0 (all, legacy fallback) Completed phkdf-0.0.0.0 (all, legacy fallback) Configuring g3p-hash-1.0.0.2... Preprocessing library for g3p-hash-1.0.0.2.. Building library for g3p-hash-1.0.0.2.. [1 of 2] Compiling Crypto.G3P.BCrypt ( /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.6.3/g3p-hash-1.0.0.2/noopt/build/Crypto/G3P/BCrypt.hs, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.6.3/g3p-hash-1.0.0.2/noopt/build/Crypto/G3P/BCrypt.o, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.6.3/g3p-hash-1.0.0.2/noopt/build/Crypto/G3P/BCrypt.dyn_o ) [2 of 2] Compiling Crypto.G3P ( lib/Crypto/G3P.hs, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.6.3/g3p-hash-1.0.0.2/noopt/build/Crypto/G3P.o, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.6.3/g3p-hash-1.0.0.2/noopt/build/Crypto/G3P.dyn_o ) Preprocessing test suite 'test' for g3p-hash-1.0.0.2.. Building test suite 'test' for g3p-hash-1.0.0.2.. [1 of 2] Compiling G3P ( test/G3P.hs, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.6.3/g3p-hash-1.0.0.2/noopt/build/test/test-tmp/G3P.o ) test/G3P.hs:197:30: error: [GHC-83865] " Couldn't match expected type base16-1.0:Data.Base16.Types.Internal.Base16 ByteString with actual type ByteString " In the first argument of B.decodeBase16, namely (T.encodeUtf8 txt) In the expression: B.decodeBase16 (T.encodeUtf8 txt) In a stmt of a 'do' block: case B.decodeBase16 (T.encodeUtf8 txt) of Left _ -> empty Right x -> pure x | 197 | case B.decodeBase16 (T.encodeUtf8 txt) of | ^^^^^^^^^^^^^^^^ test/G3P.hs:198:11: error: [GHC-83865] " Couldn't match expected type ByteString with actual type Either a2 b1 " In the pattern: Left _ In a case alternative: Left _ -> empty In a stmt of a 'do' block: case B.decodeBase16 (T.encodeUtf8 txt) of Left _ -> empty Right x -> pure x | 198 | Left _ -> empty | ^^^^^^ test/G3P.hs:199:11: error: [GHC-83865] " Couldn't match expected type ByteString with actual type Either a3 ByteString " In the pattern: Right x In a case alternative: Right x -> pure x In a stmt of a 'do' block: case B.decodeBase16 (T.encodeUtf8 txt) of Left _ -> empty Right x -> pure x | 199 | Right x -> pure x | ^^^^^^^ test/G3P.hs:212:30: error: [GHC-83865] " Couldn't match expected type base16-1.0:Data.Base16.Types.Internal.Base16 ByteString with actual type ByteString " In the first argument of B.decodeBase16, namely (T.encodeUtf8 txt) In the expression: B.decodeBase16 (T.encodeUtf8 txt) In the expression: case B.decodeBase16 (T.encodeUtf8 txt) of Left _ -> empty Right x -> pure x | 212 | case B.decodeBase16 (T.encodeUtf8 txt) of | ^^^^^^^^^^^^^^^^ test/G3P.hs:213:13: error: [GHC-83865] " Couldn't match expected type ByteString with actual type Either a0 b0 " In the pattern: Left _ In a case alternative: Left _ -> empty In the expression: case B.decodeBase16 (T.encodeUtf8 txt) of Left _ -> empty Right x -> pure x | 213 | Left _ -> empty | ^^^^^^ test/G3P.hs:214:13: error: [GHC-83865] " Couldn't match expected type ByteString with actual type Either a1 ByteString " In the pattern: Right x In a case alternative: Right x -> pure x In the expression: case B.decodeBase16 (T.encodeUtf8 txt) of Left _ -> empty Right x -> pure x | 214 | Right x -> pure x | ^^^^^^^ test/G3P.hs:259:24: error: [GHC-83865] " Couldn't match type base16-1.0:Data.Base16.Types.Internal.Base16 Text with Text Expected: ByteString -> Text Actual: ByteString -> base16-1.0:Data.Base16.Types.Internal.Base16 Text " In the second argument of (.), namely B.encodeBase16 In the expression: T.unpack . B.encodeBase16 In an equation for toHex: toHex = T.unpack . B.encodeBase16 | 259 | toHex = T.unpack . B.encodeBase16 | ^^^^^^^^^^^^^^