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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
jberryman
GHC
Commits
d6d421c1
Commit
d6d421c1
authored
Oct 18, 2015
by
Herbert Valerio Riedel
🕺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
template-haskell: set explicit return=pure
This fixups a thinko in
c6781a50
parent
1e34f621
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
libraries/template-haskell/Language/Haskell/TH/PprLib.hs
libraries/template-haskell/Language/Haskell/TH/PprLib.hs
+1
-0
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
+1
-0
No files found.
libraries/template-haskell/Language/Haskell/TH/PprLib.hs
View file @
d6d421c1
...
...
@@ -158,6 +158,7 @@ instance Applicative PprM where
(
<*>
)
=
ap
instance
Monad
PprM
where
return
=
pure
m
>>=
k
=
PprM
$
\
s
->
let
(
x
,
s'
)
=
runPprM
m
s
in
runPprM
(
k
x
)
s'
...
...
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
View file @
d6d421c1
...
...
@@ -161,6 +161,7 @@ runQ (Q m) = m
instance
Monad
Q
where
Q
m
>>=
k
=
Q
(
m
>>=
\
x
->
unQ
(
k
x
))
(
>>
)
=
(
*>
)
return
=
pure
fail
s
=
report
True
s
>>
Q
(
fail
"Q monad failure"
)
instance
Functor
Q
where
...
...
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