We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file src
module Lib where import Data.Aeson.TH as Aeson import Protolude data Freeplay = Freeplay { freeplay :: !Bool , operator :: !Text , token :: !Text , site :: !Text } data AuthRequest = AuthRequest { cmd :: !Text , gameId :: !Text , launchVars :: Freeplay } $(Aeson.deriveJSON Aeson.defaultOptions ''Freeplay) $(Aeson.deriveJSON Aeson.defaultOptions ''AuthRequest)
~/projects/hask-test master hfmt -w src/Lib.hs Error reformatting src/Lib.hs: Language.Haskell.Stylish.Parse.parseModule: could not parse <unknown>: ParseFailed (SrcLoc "<unknown>.hs" 19 1) "Parse error: $" hfmt: app/Main.hs:(71,1)-(73,41): Non-exhaustive patterns in function sourceChangedOrHasSuggestions
though project compiled fine
The text was updated successfully, but these errors were encountered:
resolved solution:
stylish-haskell -d > .stylish-haskell.yaml
# edit .stylish-haskell.yaml language_extensions: - TemplateHaskell - QuasiQuotes
I think it should be noted somewhere that hfmt can use config files of wrapped formatters
Sorry, something went wrong.
No branches or pull requests
file src
though project compiled fine
The text was updated successfully, but these errors were encountered: