tweag / ormolu

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

Install #625

Closed lishine closed 4 years ago

lishine commented 4 years ago

It is unclear, how to install ormolu using this

$ cat stack.yaml
resolver: lts-14.3
packages:
- '.'

$ stack build

I edited the stack.yaml:

Ormolu still not installed

mrkkrp commented 4 years ago

stack build is for building, stack install is for installing. I'd recommend lts-16.0.

I believe stack install just copies the compiled binary to ~/.local.bin, so make sure that path in on your PATH.

lishine commented 4 years ago

Great! Indeed, all I needed to do is stack install ormolu It is for new project with 16+ resolver. So the readme should be updated, that for stack only needed to do: stack install ormolu

And the vscode extension works. Just select the ormolu formatter.

It formats great btw! Better than hie

mrkkrp commented 4 years ago

Good to hear! I mentioned stack install in the readme.

lishine commented 4 years ago

It should be stack install ormolu And the other stuff is not needed or at least confusing.

mrkkrp commented 4 years ago