Skip to content

Minor fix to QualifiedDo docs about ApplicativeDo desugaring

utdemir requested to merge trac-utdemir/ghc:ud/qualified-do-fmap-doc-fix into master

When desugaring ApplicativeDo, GHC looks up the name fmap, not <$> (see GHC.Builtin.Names.fmapName). This commit fixes the misleading documentation; since exporting the name <$> instead of fmap causes a "not in scope" error when QualifiedDo and ApplicativeDo is combined.

I guess an alternative fix would change fmapName to use <$> instead of fmap but that'd be a breaking change.

Edited by utdemir

Merge request reports