1{-# OPTIONS_GHC -Wall #-}
15import Control.Monad.Trans (liftIO)
16import qualified System.Directory as Dir
17import System.FilePath ((</>), (<.>))
19import qualified Elm.Compiler as Compiler
20import qualified Elm.Compiler.Module as Module
21import qualified Elm.Package as Pkg
22import qualified Reporting.Task as Task
31 "elm-stuff" </> Pkg.versionToString Compiler.version
41 stuff </> "summary.dat"
44prepublishDir :: FilePath
46 stuff </> "prepublish"
53removeStuff :: FilePath -> Task.Task_ e ()
56 do let dir = root </> "elm-stuff"
57 exists <- Dir.doesDirectoryExist dir
59 then Dir.removeDirectoryRecursive dir
67elmi :: FilePath -> Module.Raw -> FilePath
69 toArtifactPath root name "elmi"
72elmo :: FilePath -> Module.Raw -> FilePath
74 toArtifactPath root name "elmo"
77moduleDocs :: FilePath -> Module.Raw -> FilePath
79 toArtifactPath root name "json"
82toArtifactPath :: FilePath -> Module.Raw -> String -> FilePath
83toArtifactPath root name ext =
84 root </> stuff </> Module.nameToHyphenPath name <.> ext
91temp :: String -> FilePath
93 stuff </> "temp" <.> ext
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