I don't know much about configure ; can you ask him to execute a specific command? If so, then ghc-pkg latest should help you. For example, here it runs on my computer for the zlib package:
% ghc-pkg latest zlib zlib-0.5.3.1 % ghc-pkg latest --global zlib zlib-0.5.3.1 % ghc-pkg latest --user zlib ghc-pkg: cannot find package zlib zsh: exit 1 ghc-pkg latest --user zlib
--global should be used for system-wide installations and should not be flagged at all for custom installations. The --user flag should be used only when you want to check if the user has a local package installation (which can override the global one).
If you have no reason, I recommend disabling configure in favor of cabal . For cabal solution here is to first cabal init in your project directory, and then check that you have such a line in the created .cabal file:
build-depends: zlib >= 0.5
The cabal is the standard for Haskell projects (as it automates and simplifies many things, including the needle). You can also request cabal to call configure if there are other dependencies. If you need more information about this, open a separate question.
Daniel Wagner
source share