() <$ x is sometimes better than fmap (const ()) x and should
never be worse.
Details
Details
- Reviewers
hvr austin ekmett - Commits
- rGHCcc7a735f0155: Define void using <$ (re #9827)
rGHCDIFFcc7a735f0155: Define void using <$ (re #9827) - Trac Issues
- #9827
Diff Detail
Diff Detail
- Repository
- rGHC Glasgow Haskell Compiler
- Branch
- void
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 2215 Build 2225: GHC Patch Validation (amd64/Linux)
Comment Actions
LGTM.
I put in a libraries proposal about this a year or two back and it was approved as well, so I don't see any issue. I just never followed up on it I guess.