packages feed

zettelkast 0.1.0.0 → 0.2.0.0

raw patch · 4 files changed

+18/−13 lines, 4 filesdep ~basedep ~lensdep ~pandocPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, lens, pandoc, pandoc-types, time

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for zettelkast +## 0.2.0.0 -- 2020-09-28++* Update to follow the nixpkgs 20.09 channel. This has a newer version of+  pandoc which is now using `Text` instead of `String`.+ ## 0.1.0.0 -- 2020-06-11  * First version. Released on an unsuspecting world.
src/Data/ZettelGraph.hs view
@@ -1,6 +1,6 @@-{-# LANGUAGE RecordWildCards #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ViewPatterns #-} module Data.ZettelGraph where @@ -43,7 +43,7 @@  extractLink :: Inline -> [ZettelID] extractLink = \case-  Link _ _ (u, _) -> catMaybes [fromPath (path u)]+  Link _ _ (u, _) -> catMaybes [fromPath (path $ T.unpack u)]   _ -> []   where     path = file . T.pack . takeFileName
src/Data/ZettelMeta.hs view
@@ -25,7 +25,7 @@   _ -> []   where     strings = \case-      Str x -> [T.pack x]+      Str x -> [x]       _ -> []  zettelMeta :: ZettelID -> Pandoc -> Maybe ZettelMeta
zettelkast.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.4  name:                zettelkast-version:             0.1.0.0+version:             0.2.0.0 synopsis: Command-line utility for working with zettelkast files description:   Command-line tool for managing zettelkast documents. The tool primarily focuses@@ -29,18 +29,18 @@                        Data.ZettelGraph   -- other-modules:   -- other-extensions:-  build-depends:       base ^>=4.12.0.0+  build-depends:       base ^>=4.12.0.0 || ^>=4.13.0.0                      , containers >= 0.6.0 && < 0.7                      , directory >= 1.3.3 && < 1.4                      , filepath >= 1.4.2 && < 1.5-                     , lens >= 4.17 && < 4.18+                     , lens >= 4.17 && <= 4.18.1                      , mtl  >= 2.2.2 && < 2.3-                     , pandoc >= 2.7.1 && < 2.8-                     , pandoc-types >= 1.17.5 && < 1.18+                     , pandoc >= 2.7.1 && <= 2.10.1+                     , pandoc-types ^>= 1.21                      , pointed >= 5.0.1 && < 5.1                      , process >= 1.6.5 && < 1.7                      , text >= 1.2.3 && < 1.3-                     , time >= 1.8.0 && < 1.9+                     , time >= 1.8.0 && <= 1.9.3   hs-source-dirs:      src   default-language:    Haskell2010 @@ -48,15 +48,15 @@   main-is:             Main.hs   -- other-modules:   -- other-extensions:-  build-depends:       base ^>=4.12.0.0+  build-depends:       base ^>=4.12.0.0 || ^>=4.13.0.0                      , zettelkast                      , containers >= 0.6.0 && < 0.7                      , directory >= 1.3.3 && < 1.4-                     , lens >= 4.17 && < 4.18+                     , lens >= 4.17 && <= 4.18.1                      , optparse-generic >= 1.3.0 && < 1.4                      , process >= 1.6.5 && < 1.7                      , text >= 1.2.3 && < 1.3-                     , time >= 1.8.0 && < 1.9+                     , time >= 1.8.0 && <= 1.9.3                      , transformers >= 0.5.6 && < 0.6   hs-source-dirs:      app   default-language:    Haskell2010@@ -67,4 +67,4 @@   type:                exitcode-stdio-1.0   hs-source-dirs:      test   main-is:             MyLibTest.hs-  build-depends:       base ^>=4.12.0.0+  build-depends:       base ^>=4.12.0.0 || ^>=4.13.0.0