packages feed

conferer-dhall 1.0.0.0 → 1.1.0.0

raw patch · 3 files changed

+22/−6 lines, 3 filesdep ~bytestringdep ~confererdep ~conferer-aesonPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: bytestring, conferer, conferer-aeson, text

API changes (from Hackage documentation)

+ Conferer.Source.Dhall: fromFilePath' :: FilePath -> IO Source
- Conferer.Source.Dhall: fromFilePath :: FilePath -> IO Source
+ Conferer.Source.Dhall: fromFilePath :: FilePath -> SourceCreator

Files

CHANGELOG.md view
@@ -8,9 +8,17 @@  Nothing +## [v1.1.0.0] 2021-03-01++### Changed++* Rename `fromFilePath` to `fromFilePath'`.+* Define a new `fromFilePath` whose type is `FilePath -> SourceCreator` instaed of `FilePath -> IO Source`.+ ## [v1.0.0.0] 2020-12-29  First release -[Unreleased]: https://github.com/ludat/conferer/compare/conferer-dhall_v1.0.0.0...HEAD+[Unreleased]: https://github.com/ludat/conferer/compare/conferer-dhall_v1.1.0.0...HEAD+[v1.1.0.0]: https://github.com/ludat/conferer/compare/conferer-dhall_v1.0.0.0...conferer-dhall_v1.1.0.0 [v1.0.0.0]: https://github.com/ludat/conferer/compare/v0.0.0.0...conferer-dhall_v1.0.0.0
conferer-dhall.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 8bb4481d13df0bed3d408adff60af49b6a685e1f3fce6ca14134d658713cac3b+-- hash: 588ab8fa28007db868a4fcb9758d77e3057881212ef21be70c60f9f60a104c9b  name:           conferer-dhall-version:        1.0.0.0+version:        1.1.0.0 synopsis:       Configuration for reading dhall files  description:    Library to abstract the parsing of many haskell config values from different config sources
src/Conferer/Source/Dhall.hs view
@@ -24,13 +24,21 @@ fromConfig :: Key -> SourceCreator fromConfig key config = do   filePath <- getFilePathFromEnv key "dhall" config-  fromFilePath filePath+  fromFilePath' filePath ++-- | Create a 'SourceCreator' from a filepath reading it as dhall+-- if the file doesn't exist do nothing, but if it has invalid+-- dhall throw an exception.+fromFilePath :: FilePath -> SourceCreator+fromFilePath filePath _config =+  fromFilePath' filePath+ -- | Create a 'Source' from a filepath reading it as dhall -- if the file doesn't exist do nothing, but if it has invalid -- dhall throw an exception.-fromFilePath :: FilePath -> IO Source-fromFilePath filePath = do+fromFilePath' :: FilePath -> IO Source+fromFilePath' filePath = do   fileExists <- doesFileExist filePath   if fileExists     then do