Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghc-debug
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian-Woo Kim
ghc-debug
Commits
64634aae
Commit
64634aae
authored
3 years ago
by
Matthew Pickering
Browse files
Options
Downloads
Patches
Plain Diff
Add snapshotDirectory convention
parent
49b04ba1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
convention/src/GHC/Debug/Convention.hs
+11
-4
11 additions, 4 deletions
convention/src/GHC/Debug/Convention.hs
with
11 additions
and
4 deletions
convention/src/GHC/Debug/Convention.hs
+
11
−
4
View file @
64634aae
module
GHC.Debug.Convention
(
socketDirectory
)
where
module
GHC.Debug.Convention
(
socketDirectory
,
snapshotDirectory
,
ghcDebugDirectory
)
where
import
System.FilePath
import
System.FilePath
import
System.Directory
import
System.Directory
-- | The default socket directory in which to place unix domain sockets in
-- | The default socket directory in which to place unix domain sockets in
-- ghc-debug-stub.
-- ghc-debug-stub.
This is currently your XDG data directory.
socket
Directory
::
IO
FilePath
ghcDebug
Directory
::
IO
FilePath
socket
Directory
=
do
ghcDebug
Directory
=
do
xdgDir
<-
getXdgDirectory
XdgData
""
xdgDir
<-
getXdgDirectory
XdgData
""
return
(
xdgDir
</>
"ghc-debug/debuggee/"
)
return
(
xdgDir
</>
"ghc-debug/debuggee/"
)
socketDirectory
::
IO
FilePath
socketDirectory
=
(
</>
"sockets"
)
<$>
ghcDebugDirectory
snapshotDirectory
::
IO
FilePath
snapshotDirectory
=
(
</>
"snapshots"
)
<$>
ghcDebugDirectory
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment