2module Build.Utils where
4import System.Directory (doesFileExist)
5import System.Environment (getEnv)
6import System.FilePath ((</>), replaceExtension)
7import qualified Build.Flags as Flag
8import qualified Paths_Elm as This
10buildPath :: Flag.Flags -> FilePath -> String -> FilePath
11buildPath flags filePath ext =
12 Flag.build_dir flags </> replaceExtension filePath ext
14cachePath :: Flag.Flags -> FilePath -> String -> FilePath
15cachePath flags filePath ext =
16 Flag.cache_dir flags </> replaceExtension filePath ext
18elmo :: Flag.Flags -> FilePath -> FilePath
20 cachePath flags filePath "elmo"
22elmi :: Flag.Flags -> FilePath -> FilePath
24 cachePath flags filePath "elmi"
26-- |The absolute path to a data file
27getDataFile :: FilePath -> IO FilePath
29 path <- This.getDataFileName name
30 exists <- doesFileExist path
34 env <- getEnv "ELM_HOME"
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