<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>No, they are not the same function.<br>
<br>
λ> let (*>) = flip const in putStrLn "hi" *> putStrLn
"bye"<br>
bye<br>
λ> let (*>) = liftA2 (flip const) in putStrLn "hi" *>
putStrLn "bye"<br>
hi<br>
bye<br>
<br>
</p>
<div class="moz-cite-prefix">On 20/11/19 3:41 pm, David Feuer wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMgWh9vvnTBtAegYLhRb2K2-ymdzAGndiyiupD=JPwch=jxoog@mail.gmail.com">
<div dir="auto">Both are correct. </div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Nov 20, 2019, 12:15 AM
Tony Morris <<a href="mailto:tonymorris@gmail.com"
moz-do-not-send="true">tonymorris@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote">This is incorrect.<br>
<br>
(<*) = liftA2 const<br>
(*>) = liftA2 (flip const)<br>
<br>
On 19/11/19 6:40 am, Keith wrote:<br>
> Just thinking for Applicative ((->) c)<br>
> (<*) = const<br>
> (*>) = flip const -- or \ _ x -> x<br>
><br>
<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank"
rel="noreferrer" moz-do-not-send="true">Libraries@haskell.org</a><br>
<a
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote>
</div>
</blockquote>
</body>
</html>