Resolving dependencies... Configuring colour-2.3.4... Configuring basement-0.0.5... Building basement-0.0.5... Building colour-2.3.4... Installed colour-2.3.4 Configuring mtl-compat-0.2.1.3... Building mtl-compat-0.2.1.3... Installed mtl-compat-0.2.1.3 Configuring safe-0.3.16... Building safe-0.3.16... Installed safe-0.3.16 Configuring transformers-compat-0.5.1.4... Building transformers-compat-0.5.1.4... Installed transformers-compat-0.5.1.4 Configuring ansi-terminal-0.8... Building ansi-terminal-0.8... Installed ansi-terminal-0.8 Configuring protolude-0.2.1... Building protolude-0.2.1... Installed protolude-0.2.1 Configuring ansi-wl-pprint-0.6.8.2... Building ansi-wl-pprint-0.6.8.2... Installed ansi-wl-pprint-0.6.8.2 Configuring optparse-applicative-0.14.0.0... Building optparse-applicative-0.14.0.0... Installed basement-0.0.5 Configuring foundation-0.0.18... Building foundation-0.0.18... Installed optparse-applicative-0.14.0.0 Installed foundation-0.0.18 Configuring memory-0.14.12... Building memory-0.14.12... Installed memory-0.14.12 Configuring cryptonite-0.24... Building cryptonite-0.24... Installed cryptonite-0.24 Configuring spake2-0.4.1... Building spake2-0.4.1... Failed to install spake2-0.4.1 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/spake2-0.4.1-9N3qZfwpcqVLRDDZQcJVVF.log ): cabal: Entering directory '/tmp/cabal-tmp-14220/spake2-0.4.1' Configuring spake2-0.4.1... Preprocessing library for spake2-0.4.1.. Building library for spake2-0.4.1.. [1 of 7] Compiling Crypto.Spake2.Util ( src/Crypto/Spake2/Util.hs, dist/build/Crypto/Spake2/Util.o ) [2 of 7] Compiling Crypto.Spake2.Group ( src/Crypto/Spake2/Group.hs, dist/build/Crypto/Spake2/Group.o ) [3 of 7] Compiling Crypto.Spake2.Math ( src/Crypto/Spake2/Math.hs, dist/build/Crypto/Spake2/Math.o ) [4 of 7] Compiling Crypto.Spake2.Groups.IntegerGroup ( src/Crypto/Spake2/Groups/IntegerGroup.hs, dist/build/Crypto/Spake2/Groups/IntegerGroup.o ) [5 of 7] Compiling Crypto.Spake2.Groups.Ed25519 ( src/Crypto/Spake2/Groups/Ed25519.hs, dist/build/Crypto/Spake2/Groups/Ed25519.o ) [6 of 7] Compiling Crypto.Spake2.Groups ( src/Crypto/Spake2/Groups.hs, dist/build/Crypto/Spake2/Groups.o ) [7 of 7] Compiling Crypto.Spake2 ( src/Crypto/Spake2.hs, dist/build/Crypto/Spake2.o ) Preprocessing executable 'haskell-spake2-interop-entrypoint' for spake2-0.4.1.. Building executable 'haskell-spake2-interop-entrypoint' for spake2-0.4.1.. [1 of 1] Compiling Main ( cmd/interop-entrypoint/Main.hs, dist/build/haskell-spake2-interop-entrypoint/haskell-spake2-interop-entrypoint-tmp/Main.o ) cmd/interop-entrypoint/Main.hs:55:37: error: • Ambiguous type variable ‘a0’ arising from a use of ‘toS’ prevents the constraint ‘(StringConv a0 ByteString)’ from being solved. Probable fix: use a type annotation to specify what ‘a0’ should be. These potential instances exist: instance StringConv ByteString ByteString -- Defined in ‘Protolude.Conv’ instance StringConv Text ByteString -- Defined in ‘Protolude.Conv’ instance StringConv GHC.Base.String ByteString -- Defined in ‘Protolude.Conv’ ...plus two instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘(.)’, namely ‘toS’ In the first argument of ‘(<$>)’, namely ‘makePassword . toS’ In the expression: makePassword . toS <$> str | 55 | passwordParser = makePassword . toS <$> str | ^^^ cmd/interop-entrypoint/Main.hs:55:45: error: • Ambiguous type variable ‘a0’ arising from a use of ‘str’ prevents the constraint ‘(IsString a0)’ from being solved. Probable fix: use a type annotation to specify what ‘a0’ should be. These potential instances exist: instance IsString a => IsString (Identity a) -- Defined in ‘Data.String’ instance IsString ByteString -- Defined in ‘bytestring-0.10.8.2:Data.ByteString.Internal’ instance IsString Text -- Defined in ‘text-1.2.2.2:Data.Text’ ...plus one other ...plus four instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘(<$>)’, namely ‘str’ In the expression: makePassword . toS <$> str In an equation for ‘passwordParser’: passwordParser = makePassword . toS <$> str | 55 | passwordParser = makePassword . toS <$> str | ^^^ cabal: Leaving directory '/tmp/cabal-tmp-14220/spake2-0.4.1' cabal: Error: some packages failed to install: spake2-0.4.1-9N3qZfwpcqVLRDDZQcJVVF failed during the building phase. The exception was: ExitFailure 1