1{-# OPTIONS_GHC -Wall #-}
8import qualified System.Directory as Dir
9import qualified System.Environment as Env
10import System.FilePath ((</>))
12import qualified Elm.Compiler as Compiler
13import qualified Elm.Package as Pkg
20getPackageRoot :: IO FilePath
25getReplRoot :: IO FilePath
30getRoot :: FilePath -> IO FilePath
32 do maybeHome <- Env.lookupEnv "ELM_HOME"
33 home <- maybe (Dir.getAppUserDataDirectory "elm") return maybeHome
34 let root = home </> version </> projectName
35 Dir.createDirectoryIfMissing True root
41 Pkg.versionToString Compiler.version
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