Resolving dependencies... Configuring base64-bytestring-1.0.0.1... Configuring random-1.1... Building random-1.1... Building base64-bytestring-1.0.0.1... Configuring SHA-1.6.4.2... Installed base64-bytestring-1.0.0.1 Building SHA-1.6.4.2... Installed random-1.1 Installed SHA-1.6.4.2 Configuring pwstore-purehaskell-2.1.2... Building pwstore-purehaskell-2.1.2... Failed to install pwstore-purehaskell-2.1.2 Build log ( /home/builder/.cabal/logs/pwstore-purehaskell-2.1.2.log ): cabal: Entering directory '/tmp/cabal-tmp-32431/pwstore-purehaskell-2.1.2' Configuring pwstore-purehaskell-2.1.2... Building pwstore-purehaskell-2.1.2... Preprocessing library pwstore-purehaskell-2.1.2... [1 of 1] Compiling Crypto.PasswordStore ( Crypto/PasswordStore.hs, dist/build/Crypto/PasswordStore.o ) Crypto/PasswordStore.hs:209:12: error: • Couldn't match expected type ‘[Char]’ with actual type ‘ByteString’ • In the first argument of ‘constantTimeCompare’, namely ‘(encode $ pbkdf1 userInput salt (2 ^ strength))’ In the expression: (encode $ pbkdf1 userInput salt (2 ^ strength)) `constantTimeCompare` goodHash In a case alternative: Just (strength, salt, goodHash) -> (encode $ pbkdf1 userInput salt (2 ^ strength)) `constantTimeCompare` goodHash Crypto/PasswordStore.hs:209:79: error: • Couldn't match expected type ‘[Char]’ with actual type ‘ByteString’ • In the second argument of ‘constantTimeCompare’, namely ‘goodHash’ In the expression: (encode $ pbkdf1 userInput salt (2 ^ strength)) `constantTimeCompare` goodHash In a case alternative: Just (strength, salt, goodHash) -> (encode $ pbkdf1 userInput salt (2 ^ strength)) `constantTimeCompare` goodHash cabal: Leaving directory '/tmp/cabal-tmp-32431/pwstore-purehaskell-2.1.2' cabal: Error: some packages failed to install: pwstore-purehaskell-2.1.2 failed during the building phase. The exception was: ExitFailure 1