mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
cln: hlint: Clean up lambda related warnings.
This commit is contained in:
parent
8bf7c95697
commit
761e00caa4
@ -18,8 +18,6 @@
|
||||
- ignore: {name: "Use fewer imports"}
|
||||
- ignore: {name: "Use tuple-section"}
|
||||
- ignore: {name: "Use section"}
|
||||
- ignore: {name: "Avoid lambda using `infix`"}
|
||||
- ignore: {name: "Use lambda-case"}
|
||||
|
||||
|
||||
# Specify additional command line arguments
|
||||
|
@ -1226,7 +1226,7 @@ multilinecommentp = startComment *> anyLine `skipManyTill` endComment
|
||||
endComment = eof <|> string "end comment" *> trailingSpaces
|
||||
|
||||
trailingSpaces = skipNonNewlineSpaces <* newline
|
||||
anyLine = void $ takeWhileP Nothing (\c -> c /= '\n') *> newline
|
||||
anyLine = void $ takeWhileP Nothing (/='\n') *> newline
|
||||
|
||||
{-# INLINABLE multilinecommentp #-}
|
||||
|
||||
|
@ -3,6 +3,7 @@ hledger-ui - a hledger add-on providing a curses-style interface.
|
||||
Copyright (c) 2007-2015 Simon Michael <simon@joyful.com>
|
||||
Released under GPL version 3 or later.
|
||||
-}
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
{-# LANGUAGE MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
|
||||
@ -219,7 +220,7 @@ runBrickUi uopts@UIOpts{cliopts_=copts@CliOpts{inputopts_=_iopts,reportspec_=rsp
|
||||
mgr
|
||||
d
|
||||
-- predicate: ignore changes not involving our files
|
||||
(\fev -> case fev of
|
||||
(\case
|
||||
Modified f _ False -> f `elem` files
|
||||
-- Added f _ -> f `elem` files
|
||||
-- Removed f _ -> f `elem` files
|
||||
|
Loading…
Reference in New Issue
Block a user