hlint 1.8.36 → 1.8.37
raw patch · 2 files changed
+8/−2 lines, 2 filesdep ~cpphsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: cpphs
API changes (from Hackage documentation)
Files
- hlint.cabal +2/−2
- hlint.htm +6/−0
hlint.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.6 build-type: Simple name: hlint-version: 1.8.36+version: 1.8.37 license: BSD3 license-file: LICENSE category: Development@@ -40,7 +40,7 @@ base == 4.*, process, filepath, directory, containers, transformers >= 0.0 && < 0.4, hscolour >= 1.17 && < 1.21,- cpphs >= 1.11 && < 1.15,+ cpphs >= 1.11 && < 1.16, haskell-src-exts >= 1.11 && < 1.14, uniplate >= 1.5 && < 1.7
hlint.htm view
@@ -230,6 +230,12 @@ HLint knows the fixities for all the operators in the base library, but no others. HLint works on a single file at a time, and does not resolve imports, so cannot see fixity declarations from imported modules. You can tell HLint about fixities by putting them in a hint file, or passing them on the command line. For example, pass <tt>"--with=infixr 5 !@%$"</tt>, or put all the fixity declarations in a file and pass <tt>--hint=fixities.hs</tt>. You can also use <tt><a href="#find">--find</a></tt> to automatically produce a list of fixity declarations in a file. </p> +<h3>How can I use <tt>--with</tt> or <tt>--hint</tt> with the default hints?</h3>++<p>+ HLint does not use the default set of hints if custom hints are specified on the command line using <tt>--with</tt> or <tt>--hint</tt>. To include the default hints either pass <tt>--hint=HLint</tt> on the command line, or add <tt>import "hint" HLint.HLint</tt> in one of the hint files you specify with <tt>--hint</tt>.+</p>+ <h2 id="customization">Customizing the hints</h2> <p>