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,253
Issues
4,253
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
397
Merge Requests
397
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
75adc352
Commit
75adc352
authored
Apr 25, 2015
by
Herbert Valerio Riedel
🕺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing since-annotations for
c024af13
See also
#9049
parent
c4e8097e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
libraries/base/GHC/SrcLoc.hs
libraries/base/GHC/SrcLoc.hs
+7
-0
libraries/base/GHC/Stack.hsc
libraries/base/GHC/Stack.hsc
+6
-1
No files found.
libraries/base/GHC/SrcLoc.hs
View file @
75adc352
{-# LANGUAGE RecordWildCards #-}
-- | @since 4.8.2.0
module
GHC.SrcLoc
(
SrcLoc
,
srcLocPackage
...
...
@@ -14,6 +16,8 @@ module GHC.SrcLoc
)
where
-- | A single location in the source code.
--
-- @since 4.8.2.0
data
SrcLoc
=
SrcLoc
{
srcLocPackage
::
String
,
srcLocModule
::
String
...
...
@@ -24,6 +28,9 @@ data SrcLoc = SrcLoc
,
srcLocEndCol
::
Int
}
deriving
(
Show
,
Eq
)
-- | Pretty print 'SrcLoc'
--
-- @since 4.8.2.0
showSrcLoc
::
SrcLoc
->
String
showSrcLoc
SrcLoc
{
..
}
=
concat
[
srcLocFile
,
":"
...
...
libraries/base/GHC/Stack.hsc
View file @
75adc352
...
...
@@ -24,6 +24,8 @@ module GHC.Stack (
errorWithStackTrace,
-- ** Explicitly created via implicit-parameters
--
-- @since 4.8.2.0
CallStack,
getCallStack,
showCallStack,
...
...
@@ -171,11 +173,14 @@ errorWithStackTrace x = unsafeDupablePerformIO $ do
-- that was called, the 'SrcLoc' is the call-site. The list is ordered with the
-- most recently called function at the head.
--
-- @since 4.
9.0
.0
-- @since 4.
8.2
.0
data CallStack = CallStack { getCallStack :: [(String, SrcLoc)] }
-- See Note [Overview of implicit CallStacks]
deriving (Show, Eq)
-- | Pretty print 'CallStack'
--
-- @since 4.8.2.0
showCallStack :: CallStack -> String
showCallStack (CallStack (root:rest))
= unlines (showCallSite root : map (indent . showCallSite) rest)
...
...
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