2module Util.System(tempfile,environment) 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
19tempfile :: IO (FilePath, Handle)
20tempfile = do env <- environment "TMPDIR"
24 openTempFile dir "idris"
26environment :: String -> IO (Maybe String)
27environment x = catchIO (do e <- getEnv x
29 (\_ -> 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