Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
transformers
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository 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
Glasgow Haskell Compiler
Packages
transformers
Commits
6a1393f1
Commit
6a1393f1
authored
6 years ago
by
Ross Paterson
Browse files
Options
Downloads
Patches
Plain Diff
Further backward compatability fix
parent
f863cc0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Control/Monad/Trans/List.hs
+1
-1
1 addition, 1 deletion
Control/Monad/Trans/List.hs
with
1 addition
and
1 deletion
Control/Monad/Trans/List.hs
+
1
−
1
View file @
6a1393f1
...
...
@@ -146,7 +146,7 @@ instance (Monad m) => MonadPlus (ListT m) where
instance
(
MonadFix
m
)
=>
MonadFix
(
ListT
m
)
where
mfix
f
=
ListT
$
mfix
(
runListT
.
f
.
head
)
>>=
\
xs
->
case
xs
of
[]
->
return
[]
x
:
_
->
liftM
(
x
:
)
(
runListT
(
mfix
(
mapListT
(
fmap
tail
)
.
f
)))
x
:
_
->
liftM
(
x
:
)
(
runListT
(
mfix
(
mapListT
(
liftM
tail
)
.
f
)))
{-# INLINE mfix #-}
instance
MonadTrans
ListT
where
...
...
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