on master help sign in
Improved documentation
commitefe39e3d05b791c64071dc0e7ce9580c3ddd2e29 authorMichael Snoyman <michael@snoyman.com> dateMon 19 Nov 2012, 16:13 (14 years ago) parent2d0966c
2 files changed+24−3
Data/Yaml.hs+15 yaml.cabal+9−3
Data/Yaml.hs+15
@@ -6,6 +6,21 @@
66{-# LANGUAGE PatternGuards #-}
77{-# LANGUAGE ScopedTypeVariables #-}
88{-# LANGUAGE OverloadedStrings #-}
9+-- | Provides a high-level interface for processing YAML files.
10+--
11+-- This module reuses most of the infrastructure from the @aeson@ package.
12+-- This means that you can use all of the existing tools for JSON
13+-- processing for processing YAML files. As a result, much of the
14+-- documentation below mentions JSON; do not let that confuse you, it's
15+-- intentional.
16+--
17+-- For the most part, YAML content translates directly into JSON, and
18+-- therefore there is very little data loss. If you need to deal with YAML
19+-- more directly (e.g., directly deal with aliases), you should use the
20+-- "Text.Libyaml" module instead.
21+--
22+-- For documentation on the @aeson@ types, functions, classes, and
23+-- operators, please see the @Data.Aeson@ module of the @aeson@ package.
924module Data.Yaml
1025 ( -- * Types
1126 Value (..)
yaml.cabal+9−3
@@ -1,17 +1,23 @@
11name: yaml
2−version: 0.8.1
2+version: 0.8.1.1
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
66maintainer: Michael Snoyman <michael@snoyman.com>
7−synopsis: Low-level binding to the libyaml C library.
7+synopsis: Support for parsing and rendering YAML documents.
88description: Provides support for parsing and emitting Yaml documents.
99 .
1010 This package includes the full libyaml C library version 0.1.2 by Kirill
1111 Simonov (<http://pyyaml.org/wiki/LibYAML>) in the package so you
1212 don't need to worry about any non-Haskell dependencies.
13+ .
14+ The package is broken down into two modules.
15+ "Data.Yaml" provides a high-level interface based
16+ around the JSON datatypes provided by the @aeson@
17+ package. "Text.Libyaml" provides a lower-level,
18+ streaming interface. For most users, "Data.Yaml" is recommended.
1319category: Web
14−stability: unstable
20+stability: stable
1521cabal-version: >= 1.8
1622build-type: Simple
1723homepage: http://github.com/snoyberg/yaml/