packages feed

ghc-debug-convention-0.1.0.0: src/GHC/Debug/Convention.hs

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/")