freckle-env 0.0.1.2 → 0.0.1.3
raw patch · 5 files changed
+22/−18 lines, 5 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Freckle.App.Env: instance GHC.Internal.Show.Show Freckle.App.Env.Timeout
+ Freckle.App.Env: instance GHC.Show.Show Freckle.App.Env.Timeout
Files
- CHANGELOG.md +6/−2
- freckle-env.cabal +4/−4
- library/Freckle/App/Dotenv.hs +6/−6
- library/Freckle/App/Env.hs +4/−4
- package.yaml +2/−2
CHANGELOG.md view
@@ -1,6 +1,10 @@-## [_Unreleased_](https://github.com/freckle/freckle-app/compare/freckle-env-v0.0.1.2...main)+## [_Unreleased_](https://github.com/freckle/freckle-env/compare/v0.0.1.3...main) -## [v0.0.1.1](https://github.com/freckle/freckle-app/compare/freckle-env-v0.0.1.1...freckle-env-v0.0.1.2)+## [v0.0.1.3](https://github.com/freckle/freckle-env/tree/v0.0.1.3)++Changed source repository++## [v0.0.1.2](https://github.com/freckle/freckle-app/compare/freckle-env-v0.0.1.1...freckle-env-v0.0.1.2) Support `envparse` `0.6`
freckle-env.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.18 name: freckle-env-version: 0.0.1.2+version: 0.0.1.3 license: MIT license-file: LICENSE maintainer: Freckle Education-homepage: https://github.com/freckle/freckle-app#readme-bug-reports: https://github.com/freckle/freckle-app/issues+homepage: https://github.com/freckle/freckle-env#readme+bug-reports: https://github.com/freckle/freckle-env/issues synopsis: Some extensions to the envparse library description: Please see README.md category: Environment, System@@ -17,7 +17,7 @@ source-repository head type: git- location: https://github.com/freckle/freckle-app+ location: https://github.com/freckle/freckle-env library exposed-modules:
library/Freckle/App/Dotenv.hs view
@@ -45,12 +45,12 @@ let examplePath = takeDirectory path </> ".env.example" exampleExists <- doesFileExist examplePath - void $- Dotenv.loadFile $- Dotenv.defaultConfig- { Dotenv.configPath = [path]- , Dotenv.configExamplePath = [examplePath | exampleExists]- }+ void+ $ Dotenv.loadFile+ $ Dotenv.defaultConfig+ { Dotenv.configPath = [path]+ , Dotenv.configExamplePath = [examplePath | exampleExists]+ } locateInParents :: FilePath -> IO (Maybe FilePath) locateInParents path = go =<< getCurrentDirectory
library/Freckle/App/Env.hs view
@@ -38,6 +38,7 @@ ) where import Prelude+import Prelude qualified as Unsafe (read) import Control.Error.Util (note) import Data.Char (isDigit)@@ -45,7 +46,6 @@ import Data.Text qualified as T import Data.Time (UTCTime, defaultTimeLocale, parseTimeM) import Env qualified-import Prelude qualified as Unsafe (read) #if MIN_VERSION_envparse(0,5,2) import Data.Bifunctor (second)@@ -108,8 +108,8 @@ -- Left [("TIME",UnreadError "unable to parse time as %Y-%m-%d: \"10:00PM\"")] time :: String -> Env.Reader Error UTCTime time fmt =- eitherReader $- note ("unable to parse time as " <> fmt)+ eitherReader+ $ note ("unable to parse time as " <> fmt) . parseTimeM True defaultTimeLocale fmt -- | Read key-value pairs@@ -156,7 +156,7 @@ data Timeout = TimeoutSeconds Int | TimeoutMilliseconds Int- deriving stock (Show, Eq)+ deriving stock (Eq, Show) -- | Read a timeout value as seconds or milliseconds --
package.yaml view
@@ -1,8 +1,8 @@ name: freckle-env-version: 0.0.1.2+version: 0.0.1.3 maintainer: Freckle Education category: Environment, System-github: freckle/freckle-app+github: freckle/freckle-env synopsis: Some extensions to the envparse library description: Please see README.md