1{-# OPTIONS_GHC -Wall #-}
16import Control.Monad.Trans (liftIO)
17import qualified System.Directory as Dir
18import System.FilePath ((</>), (<.>))
20import qualified Elm.Compiler as Compiler
21import qualified Elm.Compiler.Module as Module
22import qualified Elm.Package as Pkg
23import qualified Reporting.Task as Task
32 "elm-stuff" </> Pkg.versionToString Compiler.version
42 stuff </> "solution.dat"
47 stuff </> "summary.dat"
50prepublishDir :: FilePath
52 stuff </> "prepublish"
59removeStuff :: FilePath -> Task.Task_ e ()
62 do let dir = root </> "elm-stuff"
63 exists <- Dir.doesDirectoryExist dir
65 then Dir.removeDirectoryRecursive dir
73elmi :: FilePath -> Module.Raw -> FilePath
75 toArtifactPath root name "elmi"
78elmo :: FilePath -> Module.Raw -> FilePath
80 toArtifactPath root name "elmo"
83moduleDocs :: FilePath -> Module.Raw -> FilePath
85 toArtifactPath root name "json"
88toArtifactPath :: FilePath -> Module.Raw -> String -> FilePath
89toArtifactPath root name ext =
90 root </> stuff </> Module.nameToHyphenPath name <.> 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