[GHC] #4189: (<.>) operator (generalizing (.) to Functor)
GHC
cvs-ghc at haskell.org
Wed Jul 14 04:39:30 EDT 2010
#4189: (<.>) operator (generalizing (.) to Functor)
---------------------------------+------------------------------------------
Reporter: uzytkownik | Owner:
Type: feature request | Status: new
Priority: normal | Component: libraries/base
Version: 6.12.3 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by malcolm.wallace@…):
The type you have chosen for <.> is far from obvious. Why not
{{{
(<.>) :: (b->c) -> (a->b) -> f a -> f c
f <.> g = ((f . g) <$>)
}}}
for instance?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4189#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list