while building cardano-node with cabal new-build, build fails on cardano-prelude dependecy with:
src/Cardano/Prelude/Base16.hs:30:22: error:
• Couldn't match expected type ‘(a, b)’
with actual type ‘Either GHC.Base.String ByteString’
• In the expression: B16.decode $ encodeUtf8 s
In a pattern binding: (bs, suffix) = B16.decode $ encodeUtf8 s
In the expression:
do let (bs, suffix) = B16.decode $ encodeUtf8 s
unless (BS.null suffix) . Left $ Base16IncorrectSuffix suffix
pure bs
• Relevant bindings include
bs :: a (bound at src/Cardano/Prelude/Base16.hs:30:8)
suffix :: b (bound at src/Cardano/Prelude/Base16.hs:30:12)
|
30 | let (bs, suffix) = B16.decode $ Text.encodeUtf8 s
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
while building cardano-node with
cabal new-build
, build fails on cardano-prelude dependecy with: