Comments (5)
+1
Having the exact same issue, and also don't understand the error message unfortunately.
from hfmt.
@Musilitar I got these weird messages subsequently a lot with other packages too. Maybe it's Windows problem. The Haskell tooling is such a mess.
However that and others can be actually fixed with the suggestion in the message:
Add stylish-haskell-0.9.2.0@sha256:c43a964348b144c9dbe82391b27a9010a53405a8edf3db80abde0ca1d7117911
to extra-deps
array in C:\sr\global-project\stack.yaml
from hfmt.
Thanks!
Yes I've been having some problems on Windows in general so I guess I'll switch to Linux again.
So this is probably not a problem of this package but just Stack on Windows.
from hfmt.
This is not a bug but a side effect of how stack works, since stylish-haskell
and hindent
are not in the stack snapshots so you'll have to manually add them to your stack.yaml as the build command suggested. I know that's annoying but unless someone maintains those packages in the stack snapshot I think that's just how it will be.
More info: https://docs.haskellstack.org/en/stable/stack_yaml_vs_cabal_package_file/
from hfmt.
To circle back on this, it isn't a linux vs Windows thing but just the way stack
works with packages that are not part of the snapshot.
Things have gotten a bit better however, stylish-haskell
is now part of stackage, so only hindent
needs to be added manually.
from hfmt.
Related Issues (20)
- hfmt chokes on stdin HOT 4
- Exit code semantics
- hfmt.EXE: app\Main.hs:(71,1)-(73,41): Non-exhaustive patterns in function sourceChangedOrHasSuggestions HOT 2
- Cant parse template haskell HOT 1
- Load config from source path
- stack-fmt exe
- Print suggestions even when overwriting sources
- Do not use `sourceList`
- Can't install with Stack HOT 1
- Use conditional includes to use `readGenericPackageDescription` only with newer cabal versions
- Stack install hfmt fails on latest everything [Linux, v0.2.2] HOT 5
- Take Cabal default-extensions into account HOT 1
- Configuration files aren't installed with `cabal copy` (and I'm guessing `cabal install` too) HOT 6
- stack install hfmt fails on OSX HOT 1
- hfmt misformats haddock comments in the export list
- hfmt misformats the `*` operator when qualified and parenthesized
- stack update to lts-14.6 and ghc 8.6.5 HOT 3
- Remove restrictive upper bounds on stylish-haskell and hlint dependencies HOT 1
- Support newer GHC versions?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hfmt.