hledger-lib 1.13 → 1.13.1
raw patch · 3 files changed
+17/−16 lines, 3 filesdep −herePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies removed: here
API changes (from Hackage documentation)
- Hledger.Utils: hereFileRelative :: FilePath -> Q Exp
Files
- CHANGES.md +4/−0
- Hledger/Utils.hs +11/−11
- hledger-lib.cabal +2/−5
CHANGES.md view
@@ -1,6 +1,10 @@ Internal/api/developer-ish changes in the hledger-lib (and hledger) packages. For user-visible changes, see the hledger package changelog. +# 1.13.1 (2019/02/02)++- stop depending on here to avoid haskell-src-meta/stackage blockage.+ # 1.13 (2019/02/01) - in Journal's jtxns field, forecasted txns are appended rather than prepended
Hledger/Utils.hs view
@@ -37,18 +37,18 @@ import Control.Monad (liftM, when) -- import Data.Char import Data.Default-import Data.FileEmbed (makeRelativeToProject, embedFile)+import Data.FileEmbed (makeRelativeToProject, embedStringFile) import Data.List -- import Data.Maybe -- import Data.PPrint-import Data.String.Here (hereFile)+-- import Data.String.Here (hereFile) import Data.Text (Text) import qualified Data.Text.IO as T import Data.Time.Clock import Data.Time.LocalTime -- import Data.Text (Text) -- import qualified Data.Text as T-import Language.Haskell.TH.Quote (QuasiQuoter(..))+-- import Language.Haskell.TH.Quote (QuasiQuoter(..)) import Language.Haskell.TH.Syntax (Q, Exp) import System.Directory (getHomeDirectory) import System.FilePath((</>), isRelative)@@ -225,16 +225,16 @@ mapM' f = sequence' . map f -- | Like embedFile, but takes a path relative to the package directory.--- Similar to hereFileRelative ?+-- Similar to embedFileRelative ? embedFileRelative :: FilePath -> Q Exp-embedFileRelative f = makeRelativeToProject f >>= embedFile+embedFileRelative f = makeRelativeToProject f >>= embedStringFile --- | Like hereFile, but takes a path relative to the package directory.--- Similar to embedFileRelative ?-hereFileRelative :: FilePath -> Q Exp-hereFileRelative f = makeRelativeToProject f >>= hereFileExp- where- QuasiQuoter{quoteExp=hereFileExp} = hereFile+-- -- | Like hereFile, but takes a path relative to the package directory.+-- -- Similar to embedFileRelative ?+-- hereFileRelative :: FilePath -> Q Exp+-- hereFileRelative f = makeRelativeToProject f >>= hereFileExp+-- where+-- QuasiQuoter{quoteExp=hereFileExp} = hereFile tests_Utils = tests "Utils" [ tests_Text
hledger-lib.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: c17b44c345a89a13650ca3efcba7d7e8311e9312acfd08dff5f2716e70ca29d7+-- hash: 37a0c290958e641dd8779201025f1614b90535b0922970496375bb95d60024bf name: hledger-lib-version: 1.13+version: 1.13.1 synopsis: Core data types, parsers and functionality for the hledger accounting tools description: This is a reusable library containing hledger's core functionality. .@@ -124,7 +124,6 @@ , file-embed >=0.0.10 , filepath , hashtables >=1.2.3.1- , here , megaparsec >=7.0.0 && <8 , mtl , mtl-compat@@ -227,7 +226,6 @@ , file-embed >=0.0.10 , filepath , hashtables >=1.2.3.1- , here , megaparsec >=7.0.0 && <8 , mtl , mtl-compat@@ -329,7 +327,6 @@ , file-embed >=0.0.10 , filepath , hashtables >=1.2.3.1- , here , hledger-lib , megaparsec >=7.0.0 && <8 , mtl