1module Snapshot.Object01 where
3import Foreign.Object (Object, keys, member)
4import Foreign.Object.Unsafe (unsafeIndex)
6test1 :: Object Int -> Int
7test1 a = unsafeIndex a "foo"
9test2 :: Object Int -> Int
10test2 a = unsafeIndex a "foo.bar"
12test3 :: Object Int -> String -> Int
13test3 a b = unsafeIndex a b
15test4 :: Object Int -> Array String
18test5 :: Object Int -> Boolean
19test5 obj = member "wat" obj
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