4#define POSIX_LIKE !(defined(_WIN32_HOST_OS) || defined(_WIN64_HOST_OS)) && \
5 (defined(unix_HOST_OS) || defined(__unix___HOST_OS) || \
6 defined(__unix_HOST_OS) || defined(linux_HOST_OS) || \
7 defined(__linux___HOST_OS) || defined(__linux_HOST_OS) || \
8 (defined(__APPLE___HOST_OS) && defined(__MACH___HOST_OS)))
15import Distribution.PackageDescription
16import Distribution.Simple
17import Distribution.Simple.LocalBuildInfo
18import Distribution.Simple.Setup
20import System.Directory
21import System.Environment.XDG.BaseDir
23import System.Posix.Files
27main = defaultMainWithHooks $ simpleUserHooks {postInst = setupXDG}
29setupXDG :: Args -> InstallFlags -> PackageDescription -> LocalBuildInfo -> IO ()
31 configDir <- getUserConfigDir "purescript"
32 configExists <- doesDirectoryExist configDir
33 unless configExists $ do
34 createDirectoryIfMissing True configDir
36 setFileMode configDir ownerModes
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