salak-toml 0.3.5.1 → 0.3.5.3
raw patch · 4 files changed
+34/−12 lines, 4 filesdep ~basedep ~salak
Dependency ranges changed: base, salak
Files
- CHANGELOG.md +3/−0
- README.md +14/−0
- salak-toml.cabal +4/−2
- src/Salak/Toml.hs +13/−10
+ CHANGELOG.md view
@@ -0,0 +1,3 @@+0.3.5 [2019.08.21]+-------------------+* Stable version
README.md view
@@ -1,1 +1,15 @@ # salak-toml++[](https://hackage.haskell.org/package/salak-toml)+[](https://travis-ci.org/leptonyu/salak)+[](http://stackage.org/lts/package/salak-toml)+[](http://stackage.org/nightly/package/salak-toml)+[](https://github.com/leptonyu/salak/blob/master/salak-toml/LICENSE)+++Toml support for [salak](https://hackage.haskell.org/package/salak).++### Packages++- [](https://hackage.haskell.org/package/salak-yaml) Yaml support for salak.+- [](https://hackage.haskell.org/package/salak-toml) Toml support for salak.
salak-toml.cabal view
@@ -4,11 +4,12 @@ -- -- see: https://github.com/sol/hpack ----- hash: a052037c4952f4c11337a58e8bd5a35a011527bf7e1c199d9332e0529be7ae4d+-- hash: 1b35f96c8e4fb5ee6549f6028ac7b40676815f10b40706c270bc89ae8b2c6335 name: salak-toml-version: 0.3.5.1+version: 0.3.5.3 synopsis: Configuration Loader for toml+description: Toml support for [salak](https://hackage.haskell.org/package/salak). category: Library, Configuration homepage: https://github.com/leptonyu/salak#readme author: Daniel YU@@ -20,6 +21,7 @@ extra-source-files: README.md salak.toml+ CHANGELOG.md library exposed-modules:
src/Salak/Toml.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE GADTs #-}+{-# LANGUAGE GADTs #-} -- | -- Module: Salak.Toml -- Copyright: (c) 2019 Daniel YU@@ -15,18 +15,21 @@ , runSalakWithToml ) where -import Control.Exception (Exception, throwIO)-import qualified Data.HashMap.Strict as HM-import Data.List (foldl')-import qualified Data.List.NonEmpty as N-import Data.Text (Text)-import qualified Data.Text.IO as IO+import Control.Exception (Exception, throwIO)+import qualified Data.HashMap.Strict as HM+import Data.List (foldl')+import qualified Data.List.NonEmpty as N+import Data.Text (Text)+import qualified Data.Text.IO as IO import Data.Time import Salak import Salak.Internal-import qualified Salak.Trie as TR-import Toml hiding (Key, TOML, Value)-import qualified Toml as T+import qualified Salak.Trie as TR+import Toml hiding (Key, TOML, Value)+import qualified Toml as T+#if __GLASGOW_HASKELL__ < 808+import Control.Monad.IO.Class (MonadIO (..))+#endif runSalakWithToml :: (MonadCatch m, MonadIO m) => FilePath -> RunSalakT m a -> m a