git.iko.soy
/
typeable/yaml
readme
files
commits
refs
on
master
help
sign in
Added tag test
commit
55fee44d69ffd4bcbd9e740f2e81a295ca1a893f
author
Michael Snoyman
<michael@snoyman.com>
date
Thu 10 Dec 2009, 02:47
(17 years ago)
parent
9c4fe54
3 files changed
+11
compare with master
unified
split
Data/Object/Yaml.hs
+1
test/tags.hs
+7
test/tags.yaml
+3
Data/Object/Yaml.hs
+1
@@ -52,6 +52,7 @@ data Yaml = Yaml
52
52
, tag ::
String
53
53
, style ::
Style
54
54
}
55
+
deriving
(Show, Eq)
55
56
instance
ConvertSuccess Yaml Event
where
56
57
convertSuccess (
Yaml
v t s) =
EventScalar
v (convertSuccess t) s
57
58
test/tags.hs
new file
+7
@@ -0,0 +1,7 @@
1
+
import
Text.Yaml
2
+
import
qualified
Data.ByteString
as
B
3
+
4
+
main =
do
5
+
bs <-
B
.readFile
"tags.yaml"
6
+
yo <- decodeYaml' bs
7
+
print yo
test/tags.yaml
new file
+3
@@ -0,0 +1,3 @@
1
+
this: !!int
5
2
+
that: !!float
"89"
3
+
'other'
: !mine
foobarbaz
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list