1{-# LANGUAGE OverloadedStrings #-}
5import qualified Data.Yaml as Y
9 res <- Y.decodeThrow "[1,2,3]"
10 print (res :: [Integer])
12-- You can go one step further and decode into a custom type by implementing
13-- 'FromJSON' for that type. This is also appropriate where extra
14-- normalization, formatting or manipulation of the YAML is required on decode.
keysesc 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