1{-# OPTIONS_GHC -Wall #-}
2module SourceSyntax.Helpers where
4import qualified Data.Char as Char
6splitDots :: String -> [String]
10 case break (=='.') str of
11 (x,_:rest) | isOp x -> vars ++ [x ++ '.' : rest]
12 | otherwise -> go (vars ++ [x]) rest
15brkt :: String -> String
16brkt s = "{ " ++ s ++ " }"
18isTuple :: String -> Bool
20 take 6 name == "_Tuple" && all Char.isDigit (drop 6 name)
25isSymbol :: Char -> Bool
27 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