1{-# OPTIONS_GHC -Wall #-}
2module SourceSyntax.Literal where
4import SourceSyntax.PrettyPrint
5import qualified Text.PrettyPrint as PP
7data Literal = IntNum Int
12 deriving (Eq, Ord, Show)
14instance Pretty Literal where
18 FloatNum n -> PP.double n
19 Chr c -> PP.text . show $ c
20 Str s -> PP.text . show $ s
21 Boolean bool -> PP.text (show bool)
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