Fix all hlint warnings
- Html.hs: replace lambdas with section/composition where possible - Html.hs: replace case/fromMaybe with fromMaybe - Html.hs: add fromMaybe to imports, use unqualified - Parser.hs: replace span with break (2 locations) - Parser.hs: replace if/then/else with list comprehension - Parser.hs: remove redundant catch-all patterns (break is exhaustive) - Server.hs: eta reduce htmlResponse - Add .hlint.yaml to suppress 'Avoid lambda' (suggested fix has precedence issues with blaze-html's infix (!) operator) - All 26 tests passing, hlint: No hints, exit code 0
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# HLint configuration for roux-server.
|
||||
# Suppress noise that can't be cleanly fixed (e.g. blaze-html lambda patterns
|
||||
# where the suggested eta-reduced form has precedence issues).
|
||||
|
||||
- ignore: {name: "Avoid lambda"}
|
||||
Reference in New Issue
Block a user