Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,309
Issues
4,309
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
383
Merge Requests
383
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
08af42fd
Commit
08af42fd
authored
Sep 12, 2015
by
thomie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hpc: use `takeDirectory` instead of `dropWhileEnd (/= '/')`
This fixes some hpc tests on Windows. Update submodule hpc.
parent
3ec205ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
libraries/hpc
libraries/hpc
+1
-1
utils/hpc/HpcMarkup.hs
utils/hpc/HpcMarkup.hs
+1
-4
No files found.
hpc
@
315b78ac
Compare
da5928cc
...
315b78ac
Subproject commit
da5928ccf4e369f6985ef291351d074918b88019
Subproject commit
315b78ac8fe7b42912d2146783b0366f6b0e9503
utils/hpc/HpcMarkup.hs
View file @
08af42fd
...
...
@@ -479,15 +479,12 @@ instance Monoid ModuleSummary where
writeFileUsing
::
String
->
String
->
IO
()
writeFileUsing
filename
text
=
do
let
dest_dir
=
dropWhileEndLE
(
\
x
->
x
/=
'/'
)
$
filename
-- We need to check for the dest_dir each time, because we use sub-dirs for
-- packages, and a single .tix file might contain information about
-- many package.
-- create the dest_dir if needed
when
(
not
(
null
dest_dir
))
$
createDirectoryIfMissing
True
dest_dir
createDirectoryIfMissing
True
(
takeDirectory
filename
)
writeFile
filename
text
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment