Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: OpenGL-3.0.2.0 GLUT-2.7.0.12 attoparsec-0.13.2.0 Continuing even though the plan contains dangerous reinstalls. Configuring base-orphans-0.6... Configuring cabal-doctest-1.0.6... Building base-orphans-0.6... Building cabal-doctest-1.0.6... Installed base-orphans-0.6 Configuring colour-2.3.4... Building colour-2.3.4... Installed cabal-doctest-1.0.6 Configuring semigroups-0.18.4... Building semigroups-0.18.4... Installed semigroups-0.18.4 Configuring th-abstraction-0.2.6.0... Building th-abstraction-0.2.6.0... Installed colour-2.3.4 Configuring transformers-0.5.5.0... Building transformers-0.5.5.0... Installed th-abstraction-0.2.6.0 Configuring unix-compat-0.5.0.1... Building unix-compat-0.5.0.1... Installed unix-compat-0.5.0.1 Configuring utf8-string-1.0.1.1... Building utf8-string-1.0.1.1... Installed utf8-string-1.0.1.1 Configuring xml-1.3.14... Building xml-1.3.14... Installed transformers-0.5.5.0 Configuring ansi-terminal-0.8.0.2... Building ansi-terminal-0.8.0.2... Installed xml-1.3.14 Configuring transformers-compat-0.6.0.6... Installed ansi-terminal-0.8.0.2 Configuring primitive-0.6.3.0... Building transformers-compat-0.6.0.6... Building primitive-0.6.3.0... Installed transformers-compat-0.6.0.6 Configuring mtl-2.2.2... Building mtl-2.2.2... Installed mtl-2.2.2 Configuring monads-tf-0.1.0.3... Installed primitive-0.6.3.0 Configuring StateVar-1.1.0.4... Building monads-tf-0.1.0.3... Building StateVar-1.1.0.4... Installed StateVar-1.1.0.4 Configuring ansi-wl-pprint-0.6.8.2... Building ansi-wl-pprint-0.6.8.2... Installed monads-tf-0.1.0.3 Configuring tagged-0.8.5... Building tagged-0.8.5... Installed ansi-wl-pprint-0.6.8.2 Configuring xcb-types-0.9.0... Building xcb-types-0.9.0... Installed tagged-0.8.5 Configuring filemanip-0.3.6.3... Building filemanip-0.3.6.3... Installed xcb-types-0.9.0 Configuring scientific-0.3.5.2... Installed filemanip-0.3.6.3 Configuring contravariant-1.4.1... Building scientific-0.3.5.2... Building contravariant-1.4.1... Installed scientific-0.3.5.2 Configuring language-python-0.5.4... Installed contravariant-1.4.1 Configuring optparse-applicative-0.14.2.0... Building language-python-0.5.4... Building optparse-applicative-0.14.2.0... Installed optparse-applicative-0.14.2.0 Configuring distributive-0.5.3... Building distributive-0.5.3... Installed distributive-0.5.3 Configuring attoparsec-0.13.2.2... Building attoparsec-0.13.2.2... Failed to install language-python-0.5.4 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/language-python-0.5.4-6eEndepA9stDJe20ycNKrK.log ): cabal: Entering directory '/tmp/cabal-tmp-26315/language-python-0.5.4' Configuring language-python-0.5.4... Preprocessing library for language-python-0.5.4.. Building library for language-python-0.5.4.. [ 1 of 23] Compiling Language.Python.Common.Pretty ( src/Language/Python/Common/Pretty.hs, dist/build/Language/Python/Common/Pretty.o ) [ 2 of 23] Compiling Language.Python.Common.SrcLocation ( src/Language/Python/Common/SrcLocation.hs, dist/build/Language/Python/Common/SrcLocation.o ) src/Language/Python/Common/SrcLocation.hs:101:1: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘incColumn’: Patterns not matched: _ NoLocation | 101 | incColumn n loc@(Sloc { sloc_column = col }) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... src/Language/Python/Common/SrcLocation.hs:106:1: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘incTab’: Patterns not matched: NoLocation | 106 | incTab loc@(Sloc { sloc_column = col }) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... src/Language/Python/Common/SrcLocation.hs:113:1: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘incLine’: Patterns not matched: _ NoLocation | 113 | incLine n loc@(Sloc { sloc_row = row }) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [ 3 of 23] Compiling Language.Python.Common.AST ( src/Language/Python/Common/AST.hs, dist/build/Language/Python/Common/AST.o ) [ 4 of 23] Compiling Language.Python.Common.PrettyAST ( src/Language/Python/Common/PrettyAST.hs, dist/build/Language/Python/Common/PrettyAST.o ) [ 5 of 23] Compiling Language.Python.Common.StringEscape ( src/Language/Python/Common/StringEscape.hs, dist/build/Language/Python/Common/StringEscape.o ) [ 6 of 23] Compiling Language.Python.Common.Token ( src/Language/Python/Common/Token.hs, dist/build/Language/Python/Common/Token.o ) src/Language/Python/Common/Token.hs:28:1: warning: [-Wunused-imports] The import of ‘SrcLocation’ from module ‘Language.Python.Common.SrcLocation’ is redundant | 28 | import Language.Python.Common.SrcLocation (SrcSpan (..), SrcLocation (..), Span(getSpan)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 7 of 23] Compiling Language.Python.Common.PrettyToken ( src/Language/Python/Common/PrettyToken.hs, dist/build/Language/Python/Common/PrettyToken.o ) [ 8 of 23] Compiling Language.Python.Common.ParseError ( src/Language/Python/Common/ParseError.hs, dist/build/Language/Python/Common/ParseError.o ) src/Language/Python/Common/ParseError.hs:15:1: warning: [-Wunused-imports] The import of ‘Language.Python.Common.Pretty’ is redundant except perhaps to import instances from ‘Language.Python.Common.Pretty’ To import instances alone, use: import Language.Python.Common.Pretty() | 15 | import Language.Python.Common.Pretty | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Language/Python/Common/ParseError.hs:26:10: warning: [-Wdeprecations] In the use of type constructor or class ‘Error’ (imported from Control.Monad.Error.Class, but defined in Control.Monad.Trans.Error): Deprecated: "Use Control.Monad.Trans.Except instead" | 26 | instance Error ParseError where | ^^^^^ src/Language/Python/Common/ParseError.hs:26:10: warning: [-Wdeprecations] In the use of type constructor or class ‘Error’ (imported from Control.Monad.Error.Class, but defined in Control.Monad.Trans.Error): Deprecated: "Use Control.Monad.Trans.Except instead" | 26 | instance Error ParseError where | ^^^^^ [ 9 of 23] Compiling Language.Python.Common.PrettyParseError ( src/Language/Python/Common/PrettyParseError.hs, dist/build/Language/Python/Common/PrettyParseError.o ) src/Language/Python/Common/PrettyParseError.hs:18:1: warning: [-Wunused-imports] The import of ‘Language.Python.Common.PrettyToken’ is redundant except perhaps to import instances from ‘Language.Python.Common.PrettyToken’ To import instances alone, use: import Language.Python.Common.PrettyToken() | 18 | import Language.Python.Common.PrettyToken | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [10 of 23] Compiling Language.Python.Common.ParserMonad ( src/Language/Python/Common/ParserMonad.hs, dist/build/Language/Python/Common/ParserMonad.o ) src/Language/Python/Common/ParserMonad.hs:55:1: warning: [-Wunused-imports] The import of ‘Control.Monad.Error.Class’ is redundant except perhaps to import instances from ‘Control.Monad.Error.Class’ To import instances alone, use: import Control.Monad.Error.Class() | 55 | import Control.Monad.Error.Class | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Language/Python/Common/ParserMonad.hs:56:1: warning: [-Wunused-imports] The import of ‘Control.Monad.Identity’ is redundant except perhaps to import instances from ‘Control.Monad.Identity’ To import instances alone, use: import Control.Monad.Identity() | 56 | import Control.Monad.Identity as Identity | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Language/Python/Common/ParserMonad.hs:57:1: warning: [-Wunused-imports] The import of ‘Control.Monad.Trans’ is redundant except perhaps to import instances from ‘Control.Monad.Trans’ To import instances alone, use: import Control.Monad.Trans() | 57 | import Control.Monad.Trans as Trans | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [11 of 23] Compiling Language.Python.Common.ParserUtils ( src/Language/Python/Common/ParserUtils.hs, dist/build/Language/Python/Common/ParserUtils.o ) src/Language/Python/Common/ParserUtils.hs:98:1: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘makeTupleOrExpr’: Patterns not matched: [] _ | 98 | makeTupleOrExpr [e] Nothing = e | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... src/Language/Python/Common/ParserUtils.hs:177:1: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘makeDecorated’: Patterns not matched: [] _ | 177 | makeDecorated ds@(d:_) def = Decorated ds def (spanning d def) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Language/Python/Common/ParserUtils.hs:208:4: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘dots’: Patterns not matched: (IndentToken _) (DedentToken _) (NewlineToken _) (LineJoinToken _) ... | 208 | dots (DotToken {}) = 1 | ^^^^^^^^^^^^^^^^^^^^^^... src/Language/Python/Common/ParserUtils.hs:236:7: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns not matched: (ArgVarArgsPos _ _) (ArgKeyword _ _ _) | 236 | case arg of | ^^^^^^^^^^^... src/Language/Python/Common/ParserUtils.hs:275:7: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns not matched: (Param _ _ _ _) (UnPackTuple _ _ _) | 275 | case param of | ^^^^^^^^^^^^^... [12 of 23] Compiling Language.Python.Common.LexerUtils ( src/Language/Python/Common/LexerUtils.hs, dist/build/Language/Python/Common/LexerUtils.o ) src/Language/Python/Common/LexerUtils.hs:98:14: error: Ambiguous occurrence ‘take’ It could refer to either ‘Prelude.take’, imported from ‘Prelude’ at src/Language/Python/Common/LexerUtils.hs:14:8-40 (and originally defined in ‘GHC.List’) or ‘Map.take’, imported from ‘Data.Map’ at src/Language/Python/Common/LexerUtils.hs:19:1-49 (and originally defined in ‘Data.Map.Internal’) | 98 | literal = take len str | ^^^^ src/Language/Python/Common/LexerUtils.hs:123:17: error: Ambiguous occurrence ‘drop’ It could refer to either ‘Prelude.drop’, imported from ‘Prelude’ at src/Language/Python/Common/LexerUtils.hs:14:8-40 (and originally defined in ‘GHC.List’) or ‘Map.drop’, imported from ‘Data.Map’ at src/Language/Python/Common/LexerUtils.hs:19:1-49 (and originally defined in ‘Data.Map.Internal’) | 123 | = toBinary . drop 2 | ^^^^ src/Language/Python/Common/LexerUtils.hs:139:26: error: Ambiguous occurrence ‘take’ It could refer to either ‘Prelude.take’, imported from ‘Prelude’ at src/Language/Python/Common/LexerUtils.hs:14:8-40 (and originally defined in ‘GHC.List’) or ‘Map.take’, imported from ‘Data.Map’ at src/Language/Python/Common/LexerUtils.hs:19:1-49 (and originally defined in ‘Data.Map.Internal’) | 139 | return $ toToken loc (take len str) | ^^^^ cabal: Leaving directory '/tmp/cabal-tmp-26315/language-python-0.5.4' Configuring comonad-5.0.3... Installed attoparsec-0.13.2.2 Building comonad-5.0.3... Installed comonad-5.0.3 cabal: Error: some packages failed to install: language-python-0.5.4-6eEndepA9stDJe20ycNKrK failed during the building phase. The exception was: ExitFailure 1 xcffib-0.6.0-JOgQz8CWrS5JmslvPVrSVR depends on xcffib-0.6.0 which failed to install.