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 base-orphans-0.8 Building base-orphans-0.8 Building StateVar-1.1.1.1 Completed base-orphans-0.8 Starting cabal-doctest-1.0.6 Completed StateVar-1.1.1.1 Starting semigroups-0.18.5 Building cabal-doctest-1.0.6 Building semigroups-0.18.5 Completed semigroups-0.18.5 Starting tagged-0.8.6 Building tagged-0.8.6 Completed cabal-doctest-1.0.6 Starting th-abstraction-0.2.9.0 Building th-abstraction-0.2.9.0 Completed tagged-0.8.6 Starting transformers-compat-0.6.2 Building transformers-compat-0.6.2 Completed th-abstraction-0.2.9.0 Starting contravariant-1.5 Building contravariant-1.5 Completed transformers-compat-0.6.2 Starting distributive-0.6 Completed contravariant-1.5 Building distributive-0.6 Completed distributive-0.6 Starting comonad-5.0.4 Building comonad-5.0.4 Completed comonad-5.0.4 Starting bifunctors-5.5.3 Building bifunctors-5.5.3 Completed bifunctors-5.5.3 Starting profunctors-5.3 Building profunctors-5.3 Completed profunctors-5.3 Starting notmuch-0.1.0.0 Building notmuch-0.1.0.0 Failed to install notmuch-0.1.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/notmuch-0.1.0.0-Caf2NS5KlTU9NvwG8dFom7.log ): cabal: Entering directory '/tmp/cabal-tmp-17525/notmuch-0.1.0.0' Configuring notmuch-0.1.0.0... Preprocessing library for notmuch-0.1.0.0.. In file included from dist/build/Notmuch/Binding.chs.h:2:0: dist/build/Notmuch/Binding.chs.h:3:5: error: missing binary operator before token "(" #if LIBNOTMUCH_CHECK_VERSION(4,1,0) ^ dist/build/Notmuch/Binding.chs.h:7:5: error: missing binary operator before token "(" #if LIBNOTMUCH_CHECK_VERSION(5,0,0) ^ dist/build/Notmuch/Binding.chs.h:11:5: error: missing binary operator before token "(" #if LIBNOTMUCH_CHECK_VERSION(5,0,0) ^ dist/build/Notmuch/Binding.chs.h:15:5: error: missing binary operator before token "(" #if LIBNOTMUCH_CHECK_VERSION(5,0,0) ^ dist/build/Notmuch/Binding.chs.h:19:5: error: missing binary operator before token "(" #if LIBNOTMUCH_CHECK_VERSION(5,0,0) ^ c2hs: Error during preprocessing custom header file cabal: Leaving directory '/tmp/cabal-tmp-17525/notmuch-0.1.0.0' cabal: Error: some packages failed to install: notmuch-0.1.0.0-Caf2NS5KlTU9NvwG8dFom7 failed during the building phase. The exception was: ExitFailure 1