Deprecate decodeFile #129
commit1930f28a784eabf0a034be970ace1f9b28692593
authorMichael Snoyman <michael@snoyman.com>
dateMon 19 Mar 2018, 14:09 (9 years ago)
parent7ce9097
ChangeLog.md+4
@@ -1,3 +1,7 @@
1+## 0.8.29
2+
3+* Deprecated `decodeFile` [#129](https://github.com/snoyberg/yaml/issues/129)
4+
15## 0.8.28
26
37* Add `Data.Yaml.TH.yamlQQ`
Data/Yaml.hs+1
@@ -165,6 +165,7 @@ decodeFile :: FromJSON a
165165 => FilePath
166166 -> IO (Maybe a)
167167decodeFile fp = decodeHelper (Y.decodeFile fp) >>= either throwIO (return . either (const Nothing) id)
168+{-# DEPRECATED decodeFile "Please use decodeFileEither, which does not confused type-directed and runtime exceptions." #-}
168169
169170-- | A version of 'decodeFile' which should not throw runtime exceptions.
170171--
yaml.cabal+1−1
@@ -1,5 +1,5 @@
11name: yaml
2−version: 0.8.28
2+version: 0.8.29
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov