-- While building package digest-0.0.1.2 using: /home/e/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 --builddir=.stack-work/dist/x86_64-linux-nix/Cabal-2.2.0.1 configure --with-ghc=/nix/store/k0766wkbn19m5v6f9gjn7gynci26dr6z-ghc-8.4.4/bin/ghc --with-ghc-pkg=/nix/store/k0766wkbn19m5v6f9gjn7gynci26dr6z-ghc-8.4.4/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/pkgdb --libdir=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/lib --bindir=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/bin --datadir=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/share --libexecdir=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/libexec --sysconfdir=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/etc --docdir=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/doc/digest-0.0.1.2 --htmldir=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/doc/digest-0.0.1.2 --haddockdir=/home/e/.stack/snapshots/x86_64-linux-nix/lts-12.14/8.4.4/doc/digest-0.0.1.2 --dependency=base=base-4.11.1.0 --dependency=bytestring=bytestring-0.10.8.2 --extra-include-dirs=/nix/store/clrgnb0fjvn1b4zhbia6ianjd6nnyv8m-gmp-6.1.2-dev/include --extra-include-dirs=/nix/store/k0766wkbn19m5v6f9gjn7gynci26dr6z-ghc-8.4.4/include --extra-include-dirs=/nix/store/nwy73lby94rv8jql92xhxp0wx6gxwjb2-gcc-wrapper-7.3.0/include --extra-include-dirs=/nix/store/sbdmfyl43aa3nxc4f5gn27kyr9xzywyb-git-2.18.1/include --extra-lib-dirs=/nix/store/077sn4sz2mxzjm5zqlxxag2170jkkc5n-gmp-6.1.2/lib --extra-lib-dirs=/nix/store/k0766wkbn19m5v6f9gjn7gynci26dr6z-ghc-8.4.4/lib --extra-lib-dirs=/nix/store/nwy73lby94rv8jql92xhxp0wx6gxwjb2-gcc-wrapper-7.3.0/lib --extra-lib-dirs=/nix/store/sbdmfyl43aa3nxc4f5gn27kyr9xzywyb-git-2.18.1/lib Process exited with code: ExitFailure 1 Logs have been written to: /home/e/Local/patat/.stack-work/logs/digest-0.0.1.2.log Configuring digest-0.0.1.2... Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing (or bad) C library: z 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. If the header 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.