1{-# OPTIONS_GHC -Wall #-}
2module AST.Helpers where
4import qualified Data.Char as Char
8splitDots :: String -> [String]
13 case break (=='.') str of
14 (x,_:rest) | isOp x -> vars ++ [x ++ '.' : rest]
15 | otherwise -> go (vars ++ [x]) rest
19isTuple :: String -> Bool
21 take 6 name == "_Tuple"
22 && all Char.isDigit (drop 6 name)
30isSymbol :: Char -> Bool
32 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