Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc
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
Peter Becich
hpc
Commits
88b389f3
Commit
88b389f3
authored
9 years ago
by
Herbert Valerio Riedel
Browse files
Options
Downloads
Patches
Plain Diff
Fix compilation with GHC < 7.6
parent
144d5374
No related branches found
Branches containing commit
Tags
v0.6.0.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Trace/Hpc/Mix.hs
+10
-7
10 additions, 7 deletions
Trace/Hpc/Mix.hs
with
10 additions
and
7 deletions
Trace/Hpc/Mix.hs
+
10
−
7
View file @
88b389f3
...
@@ -26,18 +26,14 @@ import Data.List
...
@@ -26,18 +26,14 @@ import Data.List
import
Data.Maybe
(
catMaybes
,
fromMaybe
)
import
Data.Maybe
(
catMaybes
,
fromMaybe
)
import
Data.Time
(
UTCTime
)
import
Data.Time
(
UTCTime
)
import
Data.Tree
import
Data.Tree
import
System.FilePath
#
if
MIN_VERSION_base
(
4
,
6
,
0
)
#
if
MIN_VERSION_base
(
4
,
6
,
0
)
import
Text.Read
(
readMaybe
)
import
Text.Read
(
readMaybe
)
#
else
#
else
readMaybe
::
Read
a
=>
String
->
Maybe
a
import
Data.Char
(
isSpace
)
readMaybe
s
=
case
reads
s
of
[(
x
,
s'
)]
|
all
isSpace
s'
->
Just
x
_
->
Nothing
#
endif
#
endif
import
System.FilePath
-- a module index records the attributes of each tick-box that has
-- a module index records the attributes of each tick-box that has
-- been introduced in that module, accessed by tick-number position
-- been introduced in that module, accessed by tick-number position
-- in the list
-- in the list
...
@@ -45,6 +41,13 @@ readMaybe s = case reads s of
...
@@ -45,6 +41,13 @@ readMaybe s = case reads s of
import
Trace.Hpc.Util
(
HpcPos
,
insideHpcPos
,
Hash
,
HpcHash
(
..
),
catchIO
)
import
Trace.Hpc.Util
(
HpcPos
,
insideHpcPos
,
Hash
,
HpcHash
(
..
),
catchIO
)
import
Trace.Hpc.Tix
import
Trace.Hpc.Tix
#
if
!
MIN_VERSION_base
(
4
,
6
,
0
)
readMaybe
::
Read
a
=>
String
->
Maybe
a
readMaybe
s
=
case
reads
s
of
[(
x
,
s'
)]
|
all
isSpace
s'
->
Just
x
_
->
Nothing
#
endif
-- | 'Mix' is the information about a modules static properties, like
-- | 'Mix' is the information about a modules static properties, like
-- location of Tix's in a file.
-- location of Tix's in a file.
--
--
...
...
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