tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
958 stars 83 forks source link

ormolu has been installed, but not found #525

Closed GildedHonour closed 4 years ago

GildedHonour commented 4 years ago

MacOs, installing:

$ cabal install ormolu
Resolving dependencies...
Build profile: -w ghc-8.8.3 -O1
In order, the following will be built (use -v for more details):
 - ghc-lib-parser-8.8.3.20200224 (lib) (requires build)
 - ormolu-0.0.3.1 (lib) (requires build)
 - ormolu-0.0.3.1 (exe:ormolu) (requires build)
Starting     ghc-lib-parser-8.8.3.20200224 (lib)
Building     ghc-lib-parser-8.8.3.20200224 (lib)
Installing   ghc-lib-parser-8.8.3.20200224 (lib)
Completed    ghc-lib-parser-8.8.3.20200224 (lib)
Starting     ormolu-0.0.3.1 (lib)
Building     ormolu-0.0.3.1 (lib)
Installing   ormolu-0.0.3.1 (lib)
Completed    ormolu-0.0.3.1 (lib)
Starting     ormolu-0.0.3.1 (exe:ormolu)
Building     ormolu-0.0.3.1 (exe:ormolu)
Installing   ormolu-0.0.3.1 (exe:ormolu)
Completed    ormolu-0.0.3.1 (exe:ormolu)
Symlinking 'ormolu'

And

$ which ormolu
$ whereis ormolu
$ ormolu
-bash: ormolu: command not found
mrkkrp commented 4 years ago

Not an Ormolu issue. Most likely the directory where Cabal puts the symlink is not on your PATH. You’ll have to find that directory on Mac and then add it to PATH.