“Missing dependency on a foreign library”Troubleshooting
When a non-Haskell library is required but either isn't installed or is installed to a weird path, you will see the following error:
Configuring cryptonite-openssl-0.6... Cabal-simple_mPHDZzAJ_220.127.116.11_ghc-8.0.2: Missing dependency on a foreign library: * Missing C library: crypto 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.
Here we compile the list of libraries and corresponding distro packages so that you would know what package you need to install to get a particular library.
This one usually appears on Windows. The solution is to install OpenSSL (here's an installer for Windows) and point GHC to it: