Skip to content

Commit

Permalink
fix:add: apply the D default commodity to bare numbers, per docs, 2 [s…
Browse files Browse the repository at this point in the history
…imonmichael#815]

Avoid breaking GHC < 9.8.
  • Loading branch information
simonmichael committed Jan 4, 2024
1 parent 202aff6 commit 87600e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hledger/Hledger/Cli/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ A convenient module to import in hledger scripts,
aiming to provide the most useful imports and reduce boilerplate.
|-}

{-# LANGUAGE CPP #-}
{-# LANGUAGE PackageImports #-}

module Hledger.Cli.Script
Expand All @@ -15,7 +16,13 @@ import Control.Concurrent as M
import Control.Monad as M
import Data.Char as M
import Data.Either as M
import Data.Functor as M hiding (unzip)

import Data.Functor as M
#if MIN_VERSION_base(4,19,0)
hiding (unzip)
#endif
-- import Data.Functor as M (Functor, fmap, (<$), ($>), (<$>), (<&>)) -- or without CPP ? redundant import warning

import Data.List as M
import Data.Maybe as M
import Data.Ord as M
Expand Down

0 comments on commit 87600e5

Please sign in to comment.