Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting primitive-0.6.4.0 Starting haskell-src-exts-1.20.3 Building primitive-0.6.4.0 Building haskell-src-exts-1.20.3 Completed primitive-0.6.4.0 Starting safe-0.3.17 Building safe-0.3.17 Completed safe-0.3.17 Starting syb-0.7 Building syb-0.7 Completed syb-0.7 Starting th-abstraction-0.2.10.0 Building th-abstraction-0.2.10.0 Completed th-abstraction-0.2.10.0 Starting utf8-string-1.0.1.1 Building utf8-string-1.0.1.1 Completed utf8-string-1.0.1.1 Starting vector-0.12.0.2 Building vector-0.12.0.2 Completed vector-0.12.0.2 Starting th-expand-syns-0.4.4.0 Building th-expand-syns-0.4.4.0 Completed th-expand-syns-0.4.4.0 Starting th-lift-0.7.11 Building th-lift-0.7.11 Completed th-lift-0.7.11 Starting th-reify-many-0.1.8 Building th-reify-many-0.1.8 Completed th-reify-many-0.1.8 Starting th-lift-instances-0.1.11 Building th-lift-instances-0.1.11 Completed th-lift-instances-0.1.11 Starting th-orphans-0.13.6 Building th-orphans-0.13.6 Completed th-orphans-0.13.6 Completed haskell-src-exts-1.20.3 Starting haskell-src-meta-0.8.0.3 Building haskell-src-meta-0.8.0.3 Completed haskell-src-meta-0.8.0.3 Starting hsx2hs-0.14.1.4 Building hsx2hs-0.14.1.4 Failed to install hsx2hs-0.14.1.4 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/hsx2hs-0.14.1.4-F2eVF9RnJOIdX90MmozkS.log ): cabal: Entering directory '/tmp/cabal-tmp-9669/hsx2hs-0.14.1.4' Configuring hsx2hs-0.14.1.4... Preprocessing executable 'hsx2hs' for hsx2hs-0.14.1.4.. Building executable 'hsx2hs' for hsx2hs-0.14.1.4.. : warning: [-Wmissing-home-modules] These modules are needed for compilation but not listed in your .cabal file's other-modules: Language.Haskell.HSX.Transform [1 of 2] Compiling Language.Haskell.HSX.Transform ( src/Language/Haskell/HSX/Transform.hs, dist/build/hsx2hs/hsx2hs-tmp/Language/Haskell/HSX/Transform.o ) src/Language/Haskell/HSX/Transform.hs:578:5: error: • No instance for (Control.Monad.Fail.MonadFail HsxM) arising from a do statement with the failable pattern ‘([pat''], attrGuards, guards, decls'')’ • In a stmt of a 'do' block: ([pat''], attrGuards, guards, decls'') <- transformPatterns [pat'] In the expression: do let ([pat'], rnpss) = unzip $ renameIrrPats ... ([pat''], attrGuards, guards, decls'') <- transformPatterns [pat'] rhs' <- mkRhs (attrGuards ++ guards) (concat rnpss) rhs decls' <- case decls of Nothing -> return Nothing Just (BDecls l' ds) -> do ... _ -> error "Cannot bind implicit parameters in the \ \'where\' clause of a function using regular patterns." .... In an equation for ‘transformAlt’: transformAlt (Alt l pat rhs decls) = do let ([pat'], rnpss) = ... ([pat''], attrGuards, guards, decls'') <- transformPatterns [pat'] rhs' <- mkRhs (attrGuards ++ guards) (concat rnpss) rhs .... | 578 | ([pat''], attrGuards, guards, decls'') <- transformPatterns [pat'] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-9669/hsx2hs-0.14.1.4' cabal: Error: some packages failed to install: hsx2hs-0.14.1.4-F2eVF9RnJOIdX90MmozkS failed during the building phase. The exception was: ExitFailure 1