-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add forM_ compat definition (#12209)
I keep confusing myself because of this and I expect I’m not the only one. We have this for forM already so this only seems natural. The definition is in DA.Foldable rather than DA.Internal.Compatible since it doesn’t make sense to have it imported when you don’t import forA_. changelog_begin changelog_end
- Loading branch information
1 parent
99f9776
commit 0142c6a
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- @WARN use 'forA_' instead of 'forM_' | ||
module ActionCompat where | ||
|
||
import DA.Foldable | ||
|
||
test : Update () | ||
test = forM_ [0..3] $ \i -> debug i |