+ is a function of two arguments, and applying via (*) against a list would apply each item as first argument of plus
Doing
pure (+) <*> [1,2,3] <*> [4,5,6]
would work.
What are you trying to achieve?
hi,I am trying to naively print an applicative functor using 'show' like this -show (pure (+) <*> [1, 2, 3])I know there is something fundamentally wrong with that expression but not sure what.Can anyone please point it out.Thanks,Shishir
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners