ghc-debug-convention 0.1.0.0 → 0.2.0.0
raw patch · 3 files changed
+18/−7 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ GHC.Debug.Convention: ghcDebugDirectory :: IO FilePath
+ GHC.Debug.Convention: snapshotDirectory :: IO FilePath
Files
- CHANGELOG.md +6/−2
- ghc-debug-convention.cabal +1/−1
- src/GHC/Debug/Convention.hs +11/−4
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for convention -## 0.1.0.0 -- YYYY-mm-dd+## 0.2.0.0 -- 2021-12-06 -* First version. Released on an unsuspecting world.+* Add a snapshots convention folder.++## 0.1.0.0 -- 2021-06-14++* First version.
ghc-debug-convention.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: ghc-debug-convention-version: 0.1.0.0+version: 0.2.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:
src/GHC/Debug/Convention.hs view
@@ -1,11 +1,18 @@-module GHC.Debug.Convention (socketDirectory) where +module GHC.Debug.Convention (socketDirectory, snapshotDirectory, ghcDebugDirectory) 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+-- ghc-debug-stub. This is currently your XDG data directory.+ghcDebugDirectory :: IO FilePath+ghcDebugDirectory = do xdgDir <- getXdgDirectory XdgData "" return (xdgDir </> "ghc-debug/debuggee/")++socketDirectory :: IO FilePath+socketDirectory = (</> "sockets") <$> ghcDebugDirectory++snapshotDirectory :: IO FilePath+snapshotDirectory = (</> "snapshots") <$> ghcDebugDirectory