on master help sign in
Deprecate decodeFile #129
1930f28Michael Snoyman
ChangeLog.md+4
@@ -1,3 +1,7 @@
1+## 0.8.29
2+
3+* Deprecated `decodeFile` [#129](https://github.com/snoyberg/yaml/issues/129)
4+
1## 0.8.28
5## 0.8.28
2
6
3* Add `Data.Yaml.TH.yamlQQ`
7* Add `Data.Yaml.TH.yamlQQ`
Data/Yaml.hs+1
@@ -165,6 +165,7 @@ decodeFile :: FromJSON a
165 => FilePath
165 => FilePath
166 -> IO (Maybe a)
166 -> IO (Maybe a)
167decodeFile fp = decodeHelper (Y.decodeFile fp) >>= either throwIO (return . either (const Nothing) id)
167decodeFile 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." #-}
168
169
169-- | A version of 'decodeFile' which should not throw runtime exceptions.
170-- | A version of 'decodeFile' which should not throw runtime exceptions.
170--
171--
yaml.cabal+1−1
@@ -1,5 +1,5 @@
1name: yaml
1name: yaml
2−version: 0.8.28
2+version: 0.8.29
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
5author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov