1module Snapshot.STObject01 where
5import Control.Monad.ST as ST
6import Foreign.Object (Object, freezeST, runST)
7import Foreign.Object.ST as STObject
10test1 = runST STObject.new
20 _ <- STObject.poke "a" 1 obj
21 _ <- STObject.poke "b" 2 obj
22 _ <- STObject.poke "c" 3 obj
28 >>= STObject.poke "a" 1
29 >>= STObject.poke "b" 2
30 >>= STObject.poke "c" 3
35 _ <- STObject.poke "a" 1 obj
36 _ <- STObject.poke "b" 2 obj
37 _ <- STObject.delete "a" obj
38 _ <- STObject.delete "b" obj
44 >>= STObject.poke "a" 1
45 >>= STObject.poke "b" 2
46 >>= STObject.delete "a"
47 >>= STObject.delete "b"
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