Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Glasgow Haskell Compiler
haddock
Commits
96d09440
Commit
96d09440
authored
6 years ago
by
Oleg Grenrus
Committed by
Alec Theriault
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Comment C, which clarifies why e.g. ReadP is not enough
parent
622ea3f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
5 merge requests
!38
Make --no-tmp-comp-dir the default
,
!37
Adapt to latest xhtml version, various optimizations
,
!31
Support HsToken in DataDecl and ClassDecl
,
!12
Drop orphan instance when defined upstream.
,
!10
Haddock interfaces produced from `.hi` files
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
haddock-api/src/Haddock/Interface/ParseModuleHeader.hs
+7
-0
7 additions, 0 deletions
haddock-api/src/Haddock/Interface/ParseModuleHeader.hs
with
7 additions
and
0 deletions
haddock-api/src/Haddock/Interface/ParseModuleHeader.hs
+
7
−
0
View file @
96d09440
...
...
@@ -86,6 +86,13 @@ parseModuleHeader dflags pkgName str0 =
-- the value will be "this is a .. description" and the rest will begin
-- at "The module comment".
-- | 'C' is a 'Char' carrying its column.
--
-- This let us make an indentation-aware parser, as we know current indentation.
-- by looking at the next character in the stream ('curInd').
--
-- Thus we can munch all spaces but only not-spaces which are indented.
--
data
C
=
C
{-# UNPACK #-}
!
Int
Char
newtype
P
a
=
P
{
unP
::
[
C
]
->
Maybe
([
C
],
a
)
}
...
...
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