Skip to content

ghc-make fails when files are in PATH

Reported by olavx200 on IRC:

(base) Olavs-MBP% curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Welcome to Haskell!

This will download and install the Glasgow Haskell Compiler (GHC)
and the Cabal build tool.

ghcup installs only into the following directory, which can be removed anytime:
  /Users/olav/.ghcup

Press ENTER to proceed
or ctrl-c to abort.
Note that this script can be re-run at any given time.


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 9012k  100 9012k    0     0  7756k      0  0:00:01  0:00:01 --:--:-- 7756k
[ Info  ] Upgrading GHCup...
[ Warn  ] No GHCup update available

System requirements 
  Note: On OS X, in the course of running ghcup you will be given a dialog box to install the command line tools. Accept and the requirements will be installed for you. You will then need to run the command again.

Press ENTER to proceed
or ctrl-c to abort.
Installation may take a while.


[ Info  ] verifying digest of: /Users/olav/.ghcup/cache/ghc-8.8.3-x86_64-apple-darwin.tar.xz
[ Info  ] Unpacking: /Users/olav/.ghcup/cache/ghc-8.8.3-x86_64-apple-darwin.tar.xz
[ Info  ] Installing GHC (this may take a while)
ghcup: /Users/olav/go/bin/golint: openDirStream: inappropriate type (Not a directory)
"ghcup --cache install" failed!
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information