ghc-debug-convention (empty) → 0.1.0.0
raw patch · 3 files changed
+33/−0 lines, 3 filesdep +basedep +directorydep +filepath
Dependencies added: base, directory, filepath
Files
- CHANGELOG.md +5/−0
- ghc-debug-convention.cabal +17/−0
- src/GHC/Debug/Convention.hs +11/−0
+ CHANGELOG.md view
@@ -0,0 +1,5 @@+# Revision history for convention++## 0.1.0.0 -- YYYY-mm-dd++* First version. Released on an unsuspecting world.
+ ghc-debug-convention.cabal view
@@ -0,0 +1,17 @@+cabal-version: 2.4+name: ghc-debug-convention+version: 0.1.0.0+synopsis: Definitions needed by ghc-debug-stub and ghc-debug-common+description: Definitions needed by ghc-debug-stub and ghc-debug-common+-- bug-reports:+license: BSD-3-Clause+author: Matthew Pickering+maintainer: matthewtpickering@gmail.com+copyright: BSD-3-Clause+extra-source-files: CHANGELOG.md++library+ exposed-modules: GHC.Debug.Convention+ build-depends: base ^>=4.16.0.0, filepath ^>= 1.4 , directory ^>= 1.3+ hs-source-dirs: src/+ default-language: Haskell2010
+ src/GHC/Debug/Convention.hs view
@@ -0,0 +1,11 @@+module GHC.Debug.Convention (socketDirectory) where++import System.FilePath+import System.Directory++-- | The default socket directory in which to place unix domain sockets in+-- ghc-debug-stub.+socketDirectory :: IO FilePath+socketDirectory = do+ xdgDir <- getXdgDirectory XdgData ""+ return (xdgDir </> "ghc-debug/debuggee/")