Resolving dependencies... Configuring old-locale-1.0.0.7... Configuring polyparse-1.12... Building polyparse-1.12... Building old-locale-1.0.0.7... Installed old-locale-1.0.0.7 Configuring old-time-1.1.0.3... Building old-time-1.1.0.3... Installed old-time-1.1.0.3 Installed polyparse-1.12 Configuring cpphs-1.20.8... Building cpphs-1.20.8... Installed cpphs-1.20.8 Configuring haskell-src-exts-1.20.1... Building haskell-src-exts-1.20.1... Installed haskell-src-exts-1.20.1 Configuring haskell-src-exts-sc-0.1.0.0... Building haskell-src-exts-sc-0.1.0.0... Failed to install haskell-src-exts-sc-0.1.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/haskell-src-exts-sc-0.1.0.0-LGK1GNXSKXKJYkPS6N4RGJ.log ): cabal: Entering directory '/tmp/cabal-tmp-8531/haskell-src-exts-sc-0.1.0.0' Configuring haskell-src-exts-sc-0.1.0.0... Preprocessing library for haskell-src-exts-sc-0.1.0.0.. Building library for haskell-src-exts-sc-0.1.0.0.. [1 of 2] Compiling Generics.ApplyTwins ( src/Generics/ApplyTwins.hs, dist/build/Generics/ApplyTwins.o ) [2 of 2] Compiling Language.Haskell.Exts.SimpleComments ( src/Language/Haskell/Exts/SimpleComments.hs, dist/build/Language/Haskell/Exts/SimpleComments.o ) Preprocessing executable 'sc-example' for haskell-src-exts-sc-0.1.0.0.. Building executable 'sc-example' for haskell-src-exts-sc-0.1.0.0.. [1 of 1] Compiling Main ( example/Main.hs, dist/build/sc-example/sc-example-tmp/Main.o ) example/Main.hs:52:8: error: • Couldn't match expected type ‘[Deriving (Maybe CodeComment)]’ with actual type ‘Maybe ([InstRule (Maybe a1)] -> Deriving (Maybe a1))’ • In the sixth argument of ‘DataDecl’, namely ‘(Just (Deriving Nothing [IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Eq"))), IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Show")))]))’ In the expression: DataDecl (preComment "This is a data declaration") (DataType Nothing) Nothing (DHead Nothing (Ident Nothing "Hello")) [QualConDecl Nothing Nothing Nothing (ConDecl Nothing (Ident (postComment "HelloA Ident") "HelloA") []), QualConDecl Nothing Nothing Nothing (ConDecl (postComment "HelloB ConDecl") (Ident Nothing "HelloB") [])] (Just (Deriving Nothing [IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Eq"))), IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Show")))])) In the fifth argument of ‘Module’, namely ‘[TypeSig Nothing [Ident Nothing "func1"] (TyFun Nothing (TyCon (postComment "Argument of a function\nthe code on the right should shift down") (UnQual Nothing (Ident Nothing "String"))) (TyCon (Just "Result type of a function.\n BTW, this comment\n is three lines long!") (UnQual Nothing (Ident Nothing "String")))), PatBind Nothing (PVar Nothing (Ident Nothing "func1")) (UnGuardedRhs Nothing (LeftSection (Just "just a comment") (Lit Nothing (String Nothing "asgsd" "asgsd")) (QVarOp Nothing (UnQual Nothing (Symbol Nothing "++"))))) Nothing, DataDecl (preComment "This is a data declaration") (DataType Nothing) Nothing (DHead Nothing (Ident Nothing "Hello")) [QualConDecl Nothing Nothing Nothing (ConDecl Nothing (Ident (postComment "HelloA Ident") "HelloA") []), QualConDecl Nothing Nothing Nothing (ConDecl (postComment "HelloB ConDecl") (Ident Nothing "HelloB") [])] (Just (Deriving Nothing [IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Eq"))), IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Show")))])), TypeSig (preComment "My first comment\naslo multiline!") [Ident Nothing "func2"] (TyFun Nothing (TyCon (Just "Not a haddock comment") (UnQual Nothing (Ident Nothing "Int"))) (TyCon Nothing (UnQual Nothing (Ident Nothing "String")))), ....]’ | 52 | (Just (Deriving Nothing | ^^^^^^^^^^^^^^^^^^^^^^... example/Main.hs:53:9: error: • Couldn't match expected type ‘Maybe (DerivStrategy (Maybe a1))’ with actual type ‘[InstRule (Maybe a0)]’ • In the second argument of ‘Deriving’, namely ‘[IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Eq"))), IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Show")))]’ In the first argument of ‘Just’, namely ‘(Deriving Nothing [IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Eq"))), IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Show")))])’ In the sixth argument of ‘DataDecl’, namely ‘(Just (Deriving Nothing [IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Eq"))), IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Show")))]))’ | 53 | [ IRule Nothing Nothing Nothing (IHCon Nothing (UnQual Nothing (Ident Nothing "Eq"))) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... cabal: Leaving directory '/tmp/cabal-tmp-8531/haskell-src-exts-sc-0.1.0.0' cabal: Error: some packages failed to install: haskell-src-exts-sc-0.1.0.0-LGK1GNXSKXKJYkPS6N4RGJ failed during the building phase. The exception was: ExitFailure 1