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 StateVar-1.1.1.1 Starting data-default-class-0.1.2.0 Starting dlist-0.8.0.6 Starting blaze-builder-0.4.1.0 Building data-default-class-0.1.2.0 Building StateVar-1.1.1.1 Building dlist-0.8.0.6 Building blaze-builder-0.4.1.0 Completed data-default-class-0.1.2.0 Starting erf-2.0.0.0 Completed StateVar-1.1.1.1 Starting hashable-1.3.0.0 Building erf-2.0.0.0 Building hashable-1.3.0.0 Completed dlist-0.8.0.6 Starting integer-logarithms-1.0.3 Building integer-logarithms-1.0.3 Completed blaze-builder-0.4.1.0 Starting microlens-0.4.10 Completed erf-2.0.0.0 Starting old-locale-1.0.0.7 Building microlens-0.4.10 Building old-locale-1.0.0.7 Completed integer-logarithms-1.0.3 Starting parallel-3.2.2.0 Building parallel-3.2.2.0 Completed old-locale-1.0.0.7 Starting parser-combinators-1.0.3 Completed hashable-1.3.0.0 Starting prettyprinter-1.3.0 Building parser-combinators-1.0.3 Building prettyprinter-1.3.0 Completed microlens-0.4.10 Starting primitive-0.7.0.0 Building primitive-0.7.0.0 Completed parallel-3.2.2.0 Starting random-1.1 Completed parser-combinators-1.0.3 Starting th-abstraction-0.3.1.0 Building random-1.1 Building th-abstraction-0.3.1.0 Completed random-1.1 Starting transformers-compat-0.6.5 Completed prettyprinter-1.3.0 Starting utf8-string-1.0.1.1 Building transformers-compat-0.6.5 Building utf8-string-1.0.1.1 Completed th-abstraction-0.3.1.0 Starting word-wrap-0.4.1 Building word-wrap-0.4.1 Completed transformers-compat-0.6.5 Starting data-default-instances-containers-0.0.1 Completed word-wrap-0.4.1 Starting contravariant-1.5.1 Building data-default-instances-containers-0.0.1 Building contravariant-1.5.1 Completed utf8-string-1.0.1.1 Starting data-default-instances-dlist-0.0.1 Completed data-default-instances-containers-0.0.1 Starting data-default-instances-old-locale-0.0.1 Building data-default-instances-dlist-0.0.1 Building data-default-instances-old-locale-0.0.1 Completed data-default-instances-dlist-0.0.1 Starting unordered-containers-0.2.10.0 Completed data-default-instances-old-locale-0.0.1 Starting case-insensitive-1.2.1.0 Building unordered-containers-0.2.10.0 Building case-insensitive-1.2.1.0 Completed contravariant-1.5.1 Starting microlens-th-0.4.2.3 Completed primitive-0.7.0.0 Starting microlens-mtl-0.1.11.1 Building microlens-th-0.4.2.3 Building microlens-mtl-0.1.11.1 Completed case-insensitive-1.2.1.0 Starting data-default-0.7.1.1 Building data-default-0.7.1.1 Completed microlens-mtl-0.1.11.1 Starting vector-0.12.0.3 Completed data-default-0.7.1.1 Starting tf-random-0.5 Building vector-0.12.0.3 Building tf-random-0.5 Completed microlens-th-0.4.2.3 Starting scientific-0.3.6.2 Building scientific-0.3.6.2 Completed tf-random-0.5 Starting QuickCheck-2.12.6.1 Building QuickCheck-2.12.6.1 Completed unordered-containers-0.2.10.0 Completed scientific-0.3.6.2 Starting megaparsec-7.0.5 Building megaparsec-7.0.5 Completed megaparsec-7.0.5 Starting config-ini-0.2.4.0 Building config-ini-0.2.4.0 Completed config-ini-0.2.4.0 Completed QuickCheck-2.12.6.1 Starting data-clist-0.1.2.2 Building data-clist-0.1.2.2 Completed data-clist-0.1.2.2 Completed vector-0.12.0.3 Starting text-zipper-0.10.1 Starting vty-5.25.1 Building text-zipper-0.10.1 Building vty-5.25.1 Completed text-zipper-0.10.1 Completed vty-5.25.1 Starting brick-0.47 Building brick-0.47 Completed brick-0.47 Starting rewrite-inspector-0.1.0.0 Building rewrite-inspector-0.1.0.0 Failed to install rewrite-inspector-0.1.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/rewrite-inspector-0.1.0.0-HTDyNFHyMbUKHje1zLdaDC.log ): cabal: Entering directory '/tmp/cabal-tmp-10589/rewrite-inspector-0.1.0.0' Configuring rewrite-inspector-0.1.0.0... Preprocessing library for rewrite-inspector-0.1.0.0.. Building library for rewrite-inspector-0.1.0.0.. [1 of 4] Compiling Gen ( src/Gen.hs, dist/build/Gen.o ) [2 of 4] Compiling Pretty ( src/Pretty.hs, dist/build/Pretty.o ) [3 of 4] Compiling Types ( src/Types.hs, dist/build/Types.o ) [4 of 4] Compiling BrickUI ( src/BrickUI.hs, dist/build/BrickUI.o ) src/BrickUI.hs:42:14: error: • Couldn't match expected type ‘IO a1’ with actual type ‘s0 -> IO s0’ • Probable cause: ‘B.customMain’ is applied to too few arguments In the second argument of ‘($)’, namely ‘B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist)’ In a stmt of a 'do' block: void $ B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist) In the expression: do [fname] <- getArgs hist <- readHistory @term fname void $ B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist) | 42 | void $ B.customMain | ^^^^^^^^^^^^... src/BrickUI.hs:44:10: error: • Couldn't match expected type ‘V.Vty’ with actual type ‘IO V.Vty’ • In the first argument of ‘B.customMain’, namely ‘(V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1})’ In the second argument of ‘($)’, namely ‘B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist)’ In a stmt of a 'do' block: void $ B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist) | 44 | (V.mkVty $ V.defaultConfig { V.vtime = Just 100, V.vmin = Just 1 }) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/BrickUI.hs:45:9: error: • Couldn't match expected type ‘IO V.Vty’ with actual type ‘Maybe a0’ • In the second argument of ‘B.customMain’, namely ‘Nothing’ In the second argument of ‘($)’, namely ‘B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist)’ In a stmt of a 'do' block: void $ B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist) | 45 | Nothing -- event channel | ^^^^^^^ src/BrickUI.hs:46:10: error: • Couldn't match expected type ‘Maybe (Brick.BChan.BChan e0)’ with actual type ‘App (VizStates term) NoCustomEvent Name’ • In the third argument of ‘B.customMain’, namely ‘(app @term (themeToAttrMap theme))’ In the second argument of ‘($)’, namely ‘B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist)’ In a stmt of a 'do' block: void $ B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist) • Relevant bindings include hist :: History term (Ctx term) (bound at src/BrickUI.hs:41:7) | 46 | (app @term (themeToAttrMap theme)) -- the Brick application | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/BrickUI.hs:47:10: error: • Couldn't match expected type ‘App s0 e0 n0’ with actual type ‘VizStates term’ • In the fourth argument of ‘B.customMain’, namely ‘(createVizStates @term hist)’ In the second argument of ‘($)’, namely ‘B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist)’ In a stmt of a 'do' block: void $ B.customMain (V.mkVty $ V.defaultConfig {V.vtime = Just 100, V.vmin = Just 1}) Nothing (app @term (themeToAttrMap theme)) (createVizStates @term hist) • Relevant bindings include hist :: History term (Ctx term) (bound at src/BrickUI.hs:41:7) | 47 | (createVizStates @term hist) -- initial state | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-10589/rewrite-inspector-0.1.0.0' cabal: Error: some packages failed to install: rewrite-inspector-0.1.0.0-HTDyNFHyMbUKHje1zLdaDC failed during the building phase. The exception was: ExitFailure 1