Resolving dependencies... Configuring present-4.0.0... Building present-4.0.0... Failed to install present-4.0.0 Build log ( /home/builder/.cabal/logs/present-4.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-29815/present-4.0.0' Configuring present-4.0.0... Building present-4.0.0... Preprocessing library present-4.0.0... [1 of 2] Compiling Control.Monad.Trans.State.Strict ( src/Control/Monad/Trans/State/Strict.hs, dist/build/Control/Monad/Trans/State/Strict.o ) [2 of 2] Compiling Present ( src/Present.hs, dist/build/Present.o ) src/Present.hs:64:14: error: • The constructor ‘VarI’ should have 3 arguments, but has been given 4 • In the pattern: VarI _ ty _ _ In the pattern: Just (VarI _ ty _ _) In a case alternative: Just (VarI _ ty _ _) -> presentTy name ty src/Present.hs:93:14: error: • The constructor ‘VarI’ should have 3 arguments, but has been given 4 • In the pattern: VarI _ ty _ _ In the pattern: Just (VarI _ ty _ _) In a case alternative: Just (VarI _ ty _ _) -> presentTy name ty src/Present.hs:145:40: error: • The constructor ‘InstanceD’ should have 4 arguments, but has been given 3 • In the pattern: InstanceD _ (AppT (ConT _className) (ConT typeName)) _ In a case alternative: InstanceD _ (AppT (ConT _className) (ConT typeName)) _ -> Just (typeName, method) In the expression: case i of { InstanceD _ (AppT (ConT _className) (ConT typeName)) _ -> Just (typeName, method) _ -> Nothing } src/Present.hs:391:12: error: • The constructor ‘DataD’ should have 6 arguments, but has been given 5 • In the pattern: DataD _ctx typeName typeVariables constructors _names In a case alternative: DataD _ctx typeName typeVariables constructors _names -> dataType typeName typeVariables constructors In the expression: case dec of { DataD _ctx typeName typeVariables constructors _names -> dataType typeName typeVariables constructors NewtypeD _ typeName typeVariables constructor _names -> dataType typeName typeVariables [constructor] x -> error ("Unsupported type declaration: " ++ pprint x ++ " (" ++ show x ++ ") (" ++ show originalType ++ ")") } cabal: Leaving directory '/tmp/cabal-tmp-29815/present-4.0.0' cabal: Error: some packages failed to install: present-4.0.0 failed during the building phase. The exception was: ExitFailure 1