2module Util.System(tempfile,environment,getCC) where
4-- System helper functions.
6import System.Environment
8#if MIN_VERSION_base(4,0,0)
9import Control.Exception as CE
12#if MIN_VERSION_base(4,0,0)
13catchIO :: IO a -> (IOError -> IO a) -> IO a
20getCC = do env <- environment "IDRIS_CC"
22 Nothing -> return "gcc"
25tempfile :: IO (FilePath, Handle)
26tempfile = do env <- environment "TMPDIR"
30 openTempFile dir "idris"
32environment :: String -> IO (Maybe String)
33environment x = catchIO (do e <- getEnv x
35 (\_ -> return Nothing)
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