mirror of
https://github.com/simonmichael/hledger.git
synced 2024-10-06 10:57:30 +03:00
cln: silence some warnings/lints
This commit is contained in:
parent
92b146358f
commit
a2f6b30fbd
@ -15,6 +15,8 @@
|
||||
- ignore: {name: "Use list comprehension"}
|
||||
- ignore: {name: "Use fewer imports"}
|
||||
|
||||
# - ignore: {name: Redundant <&>, within: Hledger.Read.Common.journalFinalise}
|
||||
|
||||
|
||||
# Specify additional command line arguments
|
||||
#
|
||||
|
@ -1,7 +1,6 @@
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
{-# LANGUAGE NoMonoLocalBinds #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE PackageImports #-}
|
||||
{-# LANGUAGE ScopedTypeVariables #-}
|
||||
{-# LANGUAGE TupleSections #-}
|
||||
{-# LANGUAGE TypeFamilies #-}
|
||||
|
@ -286,6 +286,8 @@ parseAndFinaliseJournal' parser iopts f txt = do
|
||||
Left e -> throwError e
|
||||
Right pj' -> journalFinalise iopts f txt pj'
|
||||
|
||||
{- HLINT ignore journalFinalise "Redundant <&>" -} -- silence this warning, the code is clearer as is
|
||||
-- NB activates TH, may slow compilation ? https://github.com/ndmitchell/hlint/blob/master/README.md#customizing-the-hints
|
||||
-- | Post-process a Journal that has just been parsed or generated, in this order:
|
||||
--
|
||||
-- - add misc info (file path, read time)
|
||||
|
@ -3,7 +3,6 @@
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
{-# LANGUAGE FlexibleInstances #-} -- new
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
{-# LANGUAGE PackageImports #-}
|
||||
{-# LANGUAGE ScopedTypeVariables #-}
|
||||
{-# LANGUAGE StandaloneDeriving #-} -- new
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user