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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
Jade
haddock
Commits
a7378415
Unverified
Commit
a7378415
authored
3 years ago
by
Phil de Joux
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Follow hlint suggestion to remove redundant bang. (#1479)
parent
1a2df0b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.hlint.yaml
+0
-1
0 additions, 1 deletion
.hlint.yaml
haddock-api/src/Haddock/GhcUtils.hs
+1
-1
1 addition, 1 deletion
haddock-api/src/Haddock/GhcUtils.hs
with
1 addition
and
2 deletions
.hlint.yaml
+
0
−
1
View file @
a7378415
...
...
@@ -12,7 +12,6 @@
-
ignore
:
{
name
:
"
Move
map
inside
list
comprehension"
}
# 2 hints
-
ignore
:
{
name
:
"
Redundant
$"
}
# 11 hints
-
ignore
:
{
name
:
"
Redundant
<$>"
}
# 3 hints
-
ignore
:
{
name
:
"
Redundant
bang
pattern"
}
# 1 hint
-
ignore
:
{
name
:
"
Redundant
bracket"
}
# 44 hints
-
ignore
:
{
name
:
"
Redundant
id"
}
# 1 hint
-
ignore
:
{
name
:
"
Redundant
if"
}
# 3 hints
...
...
This diff is collapsed.
Click to expand it.
haddock-api/src/Haddock/GhcUtils.hs
+
1
−
1
View file @
a7378415
...
...
@@ -556,7 +556,7 @@ stringBufferFromByteString bs =
--
-- /O(1)/
takeStringBuffer
::
Int
->
StringBuffer
->
ByteString
takeStringBuffer
!
n
!
(
S
.
StringBuffer
fp
_
cur
)
=
BS
.
PS
fp
cur
n
takeStringBuffer
!
n
(
S
.
StringBuffer
fp
_
cur
)
=
BS
.
PS
fp
cur
n
-- | Return the prefix of the first 'StringBuffer' that /isn't/ in the second
-- 'StringBuffer'. **The behavior is undefined if the 'StringBuffers' use
...
...
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