Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Documentation

  • Loading branch information...
commit 9a0f1dd2addf5eef9bd16f6988db680ab0e36be8 1 parent 6cde474
Xavier Shay authored February 25, 2011
8  Data/Object/Yaml.hs
@@ -99,6 +99,14 @@ from Data.Object. For example:
99 99
         putStrLn $ "Michael is " ++ age ++ " years old."
100 100
 @
101 101
 
  102
+lookupScalar and friends implement Maybe, so you can test for optional 
  103
+attributes by switching on Nothing/Just a:
  104
+
  105
+@
  106
+    name <- lookupScalar "middleName" michael :: Maybe String
  107
+@
  108
+
  109
+
102 110
 /And that's it/
103 111
 
104 112
 There's really not more to know about this library. Enjoy!
17  README
... ...
@@ -0,0 +1,17 @@
  1
+= data-object-yaml
  2
+
  3
+Serialize data to and from YAML files.
  4
+
  5
+== Usage
  6
+
  7
+See documentation in Data/Object/Yaml.hs
  8
+
  9
+== Installation
  10
+
  11
+This package is available on hackage
  12
+
  13
+  cabal install data-objects-yaml
  14
+
  15
+== Status
  16
+
  17
+This library is used in the Yesod web framework, and is considered stable and production ready.

0 notes on commit 9a0f1dd

Please sign in to comment.
Something went wrong with that request. Please try again.