cln: silence some warnings/lints

This commit is contained in:
Simon Michael 2022-03-20 08:38:02 -10:00
parent 92b146358f
commit a2f6b30fbd
4 changed files with 4 additions and 2 deletions

View File

@ -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
#

View File

@ -1,7 +1,6 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoMonoLocalBinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}

View File

@ -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)

View File

@ -3,7 +3,6 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-} -- new
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-} -- new