Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
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
Zubin
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
No related tags found
No related merge requests found
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