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.2 Starting base16-bytestring-0.1.1.6 Starting cabal-doctest-1.0.8 Starting base-orphans-0.8.2 Building StateVar-1.2 Building base16-bytestring-0.1.1.6 Building base-orphans-0.8.2 Building cabal-doctest-1.0.8 Completed base16-bytestring-0.1.1.6 Starting cryptohash-md5-0.11.100.1 Completed StateVar-1.2 Starting cryptohash-sha1-0.11.100.1 Building cryptohash-md5-0.11.100.1 Building cryptohash-sha1-0.11.100.1 Completed cabal-doctest-1.0.8 Starting cryptohash-sha256-0.11.101.0 Building cryptohash-sha256-0.11.101.0 Completed cryptohash-md5-0.11.100.1 Starting hashable-1.3.0.0 Completed base-orphans-0.8.2 Starting primitive-0.7.0.1 Completed cryptohash-sha1-0.11.100.1 Starting regex-base-0.94.0.0 Building hashable-1.3.0.0 Building primitive-0.7.0.1 Building regex-base-0.94.0.0 Completed cryptohash-sha256-0.11.101.0 Starting tagged-0.8.6 Building tagged-0.8.6 Completed regex-base-0.94.0.0 Starting th-abstraction-0.3.2.0 Completed hashable-1.3.0.0 Starting transformers-compat-0.6.5 Building th-abstraction-0.3.2.0 Building transformers-compat-0.6.5 Completed tagged-0.8.6 Starting contravariant-1.5.2 Building contravariant-1.5.2 Completed transformers-compat-0.6.5 Starting regex-tdfa-1.3.1.0 Building regex-tdfa-1.3.1.0 Completed th-abstraction-0.3.2.0 Starting unordered-containers-0.2.10.0 Completed contravariant-1.5.2 Starting distributive-0.6.1 Building unordered-containers-0.2.10.0 Building distributive-0.6.1 Completed primitive-0.7.0.1 Starting vector-0.12.1.2 Building vector-0.12.1.2 Completed distributive-0.6.1 Starting comonad-5.0.6 Building comonad-5.0.6 Completed unordered-containers-0.2.10.0 Completed comonad-5.0.6 Starting bifunctors-5.5.7 Building bifunctors-5.5.7 Completed regex-tdfa-1.3.1.0 Completed bifunctors-5.5.7 Starting profunctors-5.5.2 Building profunctors-5.5.2 Completed profunctors-5.5.2 Starting saltine-0.0.1.0 Failed to install saltine-0.0.1.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/saltine-0.0.1.0-F9pXmXxkDzT7RdroTV3UE.log ): cabal: Entering directory '/tmp/cabal-tmp-14377/saltine-0.0.1.0' Configuring saltine-0.0.1.0... cabal: Missing dependency on a foreign library: * Missing (or bad) C library: sodium This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the library file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. cabal: Leaving directory '/tmp/cabal-tmp-14377/saltine-0.0.1.0' Completed vector-0.12.1.2 cabal: Error: some packages failed to install: hnix-store-core-0.2.0.0-FwilSiHPmyGAjPA5IXh68D depends on hnix-store-core-0.2.0.0 which failed to install. saltine-0.0.1.0-F9pXmXxkDzT7RdroTV3UE failed during the configure step. The exception was: ExitFailure 1