Resolving dependencies... Configuring extensible-exceptions-0.1.1.4... Configuring mtl-2.2.1... Building extensible-exceptions-0.1.1.4... Building mtl-2.2.1... Configuring random-1.1... Installed extensible-exceptions-0.1.1.4 Building random-1.1... Configuring text-1.2.2.1... Installed mtl-2.2.1 Building text-1.2.2.1... Configuring regex-base-0.93.2... Installed random-1.1 Building regex-base-0.93.2... Installed regex-base-0.93.2 Configuring regex-posix-0.95.2... Building regex-posix-0.95.2... Installed regex-posix-0.95.2 Configuring regex-compat-0.95.1... Building regex-compat-0.95.1... Installed regex-compat-0.95.1 Installed text-1.2.2.1 Configuring polyparse-1.12... Configuring text-icu-0.7.0.1... Building polyparse-1.12... Building text-icu-0.7.0.1... Installed polyparse-1.12 Configuring HaXml-1.23.3... Building HaXml-1.23.3... Installed text-icu-0.7.0.1 Configuring stringprep-1.0.0... Building stringprep-1.0.0... Installed stringprep-1.0.0 Installed HaXml-1.23.3 Configuring encoding-0.6.7.1... Failed to install encoding-0.6.7.1 Build log ( /home/builder/.cabal/logs/encoding-0.6.7.1.log ): cabal: Entering directory '/tmp/cabal-tmp-16011/encoding-0.6.7.1' cabal: Leaving directory '/tmp/cabal-tmp-16011/encoding-0.6.7.1' cabal: Error: some packages failed to install: encoding-0.6.7.1 failed during the configure step. The exception was: user error ('/opt/ghc/8.0.2/bin/ghc' exited with an error: /tmp/cabal-tmp-16011/encoding-0.6.7.1/Data/Static.hs:39:28: error: • Couldn't match expected type ‘Bool’ with actual type ‘Int#’ • In the expression: eqWord# v (int2Word# 4294967295#) In the expression: if eqWord# v (int2Word# 4294967295#) then Nothing else (if (I# (word2Int# v)) > 1114111 then error (show (I# (word2Int# v)) ++ " is not a valid char (" ++ show (I# i) ++ ")") else Just (chr (I# (word2Int# v)))) In the expression: let !v = indexWord32OffAddr# addr i in if eqWord# v (int2Word# 4294967295#) then Nothing else (if (I# (word2Int# v)) > 1114111 then error (show (I# (word2Int# v)) ++ " is not a valid char (" ++ show (I# i) ++ ")") else Just (chr (I# (word2Int# v)))) ) idna-0.1.1 depends on encoding-0.6.7.1 which failed to install.