[GHC] #9099: Add strict fmap
GHC
ghc-devs at haskell.org
Mon May 12 12:42:14 UTC 2014
#9099: Add strict fmap
-------------------------------------------+-------------------------------
Reporter: quchen | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: None | Version: 7.8.2
Keywords: | Operating System:
Architecture: Unknown/Multiple | Unknown/Multiple
Difficulty: Easy (less than 1 hour) | Type of failure:
Blocked By: | None/Unknown
Related Tickets: | Test Case:
| Blocking:
-------------------------------------------+-------------------------------
Add a strict version of fmap to the standard libraries.
{{{
infixl 4 <$!>
(<$!>) :: Monad m => (a -> b) -> m a -> m b
f <$!> m = do x <- m
return $! f x
{-# INLINE (<$!>) #-}
}}}
Libraries discussions:
Take 1:
http://www.haskell.org/pipermail/libraries/2013-November/021728.html
Take 3: http://www.haskell.org/pipermail/libraries/2014-April/022864.html
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9099>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list