summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleptonyu <>2019-07-11 01:57:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-07-11 01:57:00 (GMT)
commitcd6d1a6db4360124bba48d25b57809953a1edf42 (patch)
treed47593c73c622c9da61ef594107f3901d8acbed3
parent768f4d6dc9a8f41ed44ccc4f57b18cb05123bce8 (diff)
version 0.2.100.2.10
-rw-r--r--salak-toml.cabal16
-rw-r--r--src/Salak/Toml.hs2
2 files changed, 9 insertions, 9 deletions
diff --git a/salak-toml.cabal b/salak-toml.cabal
index 5c68a52..75500a9 100644
--- a/salak-toml.cabal
+++ b/salak-toml.cabal
@@ -1,6 +1,6 @@
cabal-version: 1.12
name: salak-toml
-version: 0.2.9.3
+version: 0.2.10
license: BSD3
license-file: LICENSE
copyright: (c) 2018 Daniel YU
@@ -25,11 +25,11 @@ library
build-depends:
base >=4.10 && <5,
mtl >=2.2.2 && <2.3,
- salak ==0.2.9.*,
+ salak >=0.2.10 && <0.3,
text >=1.2.3.1 && <1.3,
time >=1.8.0.2 && <1.9,
- tomland ==1.0.*,
- unordered-containers >=0.2.9.0 && <0.3
+ tomland >=1.0 && <1.2,
+ unordered-containers >=0.2.10.0 && <0.3
test-suite spec
type: exitcode-stdio-1.0
@@ -41,12 +41,12 @@ test-suite spec
default-language: Haskell2010
ghc-options: -Wall -fno-warn-orphans -fno-warn-missing-signatures
build-depends:
- QuickCheck >=2.12.6.1 && <2.14,
+ QuickCheck >=2.13.2 && <2.14,
base >=4.10 && <5,
hspec ==2.*,
mtl >=2.2.2 && <2.3,
- salak ==0.2.9.*,
+ salak >=0.2.10 && <0.3,
text >=1.2.3.1 && <1.3,
time >=1.8.0.2 && <1.9,
- tomland ==1.0.*,
- unordered-containers >=0.2.9.0 && <0.3
+ tomland >=1.0 && <1.2,
+ unordered-containers >=0.2.10.0 && <0.3
diff --git a/src/Salak/Toml.hs b/src/Salak/Toml.hs
index 3073c11..99ed667 100644
--- a/src/Salak/Toml.hs
+++ b/src/Salak/Toml.hs
@@ -69,7 +69,7 @@ foldArray a g s = foldM (\s' (ix,x) -> updateSource (SNum ix) (g x) s') s $ zip
-- | Load Toml
loadToml :: MonadIO m => FilePath -> LoadSalakT m ()
-loadToml file = loadFile file $ \i s -> do
+loadToml file = load file $ \i s -> do
re <- liftIO (parse <$> IO.readFile file)
case re of
Left e -> tell [show e] >> return s