packages feed

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 view
@@ -0,0 +1,3 @@+0.3.5 [2019.08.21]+-------------------+* Stable version
README.md view
@@ -1,1 +1,15 @@ # salak-toml++[![Hackage](https://img.shields.io/hackage/v/salak-toml.svg?logo=haskell)](https://hackage.haskell.org/package/salak-toml)+[![Build](https://img.shields.io/travis/leptonyu/salak.svg?logo=travis)](https://travis-ci.org/leptonyu/salak)+[![stackage LTS package](http://stackage.org/package/salak-toml/badge/lts)](http://stackage.org/lts/package/salak-toml)+[![stackage Nightly package](http://stackage.org/package/salak-toml/badge/nightly)](http://stackage.org/nightly/package/salak-toml)+[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/leptonyu/salak/blob/master/salak-toml/LICENSE)+![Hackage-Deps](https://img.shields.io/hackage-deps/v/salak-toml)++Toml support for [salak](https://hackage.haskell.org/package/salak).++### Packages++- [![Hackage](https://img.shields.io/badge/salak-yaml-orange)](https://hackage.haskell.org/package/salak-yaml) Yaml support for salak.+- [![Hackage](https://img.shields.io/badge/salak-toml-orange)](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