1{-# OPTIONS_GHC -Wall #-}
9import qualified System.Directory as Dir
10import qualified System.Environment as Env
11import System.FilePath ((</>))
13import qualified Elm.Compiler as Compiler
14import qualified Elm.Package as Pkg
21getPackageRoot :: IO FilePath
26getReplRoot :: IO FilePath
31getRoot :: FilePath -> IO FilePath
34 let root = home </> version </> projectName
35 Dir.createDirectoryIfMissing True root
41 Pkg.versionToString Compiler.version
44getElmHome :: IO FilePath
46 do maybeHome <- Env.lookupEnv "ELM_HOME"
47 maybe (Dir.getAppUserDataDirectory "elm") return maybeHome
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