data-object-yaml 0.3.3.4 → 0.3.3.5
raw patch · 2 files changed
+12/−1 lines, 2 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Data.Object.Yaml: instance IsString YamlScalar
Files
- Data/Object/Yaml.hs +11/−0
- data-object-yaml.cabal +1/−1
Data/Object/Yaml.hs view
@@ -99,6 +99,14 @@ putStrLn $ "Michael is " ++ age ++ " years old." @ +lookupScalar and friends implement Maybe, so you can test for optional +attributes by switching on Nothing/Just a:++@+ name <- lookupScalar "middleName" michael :: Maybe String+@++ /And that's it/ There's really not more to know about this library. Enjoy!@@ -144,6 +152,7 @@ import Data.Enumerator (($$)) import Prelude hiding (catch) import Control.Exception (throwIO, Exception)+import Data.String (IsString (fromString)) -- | Equality depends on 'value' and 'tag', not 'style'. data YamlScalar = YamlScalar@@ -154,6 +163,8 @@ deriving (Show, Read, Data, Typeable) instance Eq YamlScalar where (YamlScalar v t _) == (YamlScalar v' t' _) = v == v' && t == t'+instance IsString YamlScalar where+ fromString = toYamlScalar type YamlObject = Object YamlScalar YamlScalar
data-object-yaml.cabal view
@@ -1,5 +1,5 @@ name: data-object-yaml-version: 0.3.3.4+version: 0.3.3.5 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>