1module Language.JSON.Tokens
3import Language.JSON.String
15data Bracket = Open | Close
19 (==) Close Close = True
29 (==) Comma Comma = True
30 (==) Colon Colon = True
31 (==) (Square b1) (Square b2) = b1 == b2
32 (==) (Curly b1) (Curly b2) = b1 == b2
44JSONToken = Token JSONTokenKind
47 (==) JTBoolean JTBoolean = True
48 (==) JTNumber JTNumber = True
49 (==) JTString JTString = True
50 (==) JTNull JTNull = True
51 (==) (JTPunct p1) (JTPunct p2) = p1 == p2
54TokenKind JSONTokenKind where
55 TokType JTBoolean = Bool
56 TokType JTNumber = Double
57 TokType JTString = Maybe String
59 TokType (JTPunct _) = ()
62 tokValue JTBoolean x = x == strTrue
63 tokValue JTNumber x = cast x
64 tokValue JTString x = stringValue x
65 tokValue JTNull _ = ()
66 tokValue (JTPunct _) _ = ()
67 tokValue JTIgnore _ = ()
70ignored : JSONToken -> Bool
71ignored (Tok JTIgnore _) = True
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