Skip to content

void does not use <$

Data.Functor.void is currently defined as

void = fmap (const ())

Some Functor instances have an optimized <$, so this should be

void x = () <$ x
Trac metadata
Trac field Value
Version 7.9
Type Task
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Core Libraries
Test case
Differential revisions
BlockedBy
Related
Blocking
CC core-libraries-committee@haskell.org
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information