Added .hlint.yaml.

This commit is contained in:
Martin Sosic 2020-07-30 00:03:32 +02:00
parent 839beb4142
commit 0c6c605798
3 changed files with 7 additions and 2 deletions

1
waspc/.hlint.yaml Normal file
View File

@ -0,0 +1 @@
- arguments: [-XQuasiQuotes]

View File

@ -111,6 +111,12 @@ For benchmarking we are using [**Criterion**](http://www.serpentine.com/criterio
You can run benchmark with `stack bench`.
## Linting
If using Hlint as linter, be aware that Hlint doesn't know which default extensions are we using via Stack/cabal, so it might be missing some extension and therefore report false errors.
Hlint already adds a lot of extensions on its own so this is not a very often problem, but if that happens, add default extensions to .hlint.yaml so that Hlint knows to use them.
## Other
Wasp ascii art used in the title is from https://www.asciiart.eu/animals/insects/bees, author: Stef00.

View File

@ -31,8 +31,6 @@ generateWebApp wasp _ = concatMap ($ wasp)
]
generateReadme :: Wasp -> FileDraft
generateReadme wasp = C.makeSimpleTemplateFD (asTmplFile [P.relfile|README.md|]) wasp