1{-# OPTIONS_GHC -Wall #-}
2module AST.Helpers where
4import qualified Data.Char as Char
6splitDots :: String -> [String]
11 case break (=='.') str of
12 (x,_:rest) | isOp x -> vars ++ [x ++ '.' : rest]
13 | otherwise -> go (vars ++ [x]) rest
17isTuple :: String -> Bool
19 take 6 name == "_Tuple" && all Char.isDigit (drop 6 name)
27isSymbol :: Char -> Bool
29 Char.isSymbol c || elem c "+-/*=.$<>:&|^?%#@~!"
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