News for hackers. Stuff that matters.
Re:Why does Haskell, in your opinion, suck? by JadeNB on Sunday April 17, 2016 @10:35AM (#11514632)
I think that your second indented block, which is currently

    <*>
, is supposed to be `<$>` (based on the rest of your discussion).
Re:Why does Haskell, in your opinion, suck? by spion on Sunday April 17, 2016 @11:36AM (#11514869)
Yes, <$> is the general `map` (`fmap`)

  <*> 
takes function(s) out of a mappable and applies it (them) to argument(s) within a mappable.

  (+) <$> [1,2,3] = [add 1, add 2, add 3]

  (+) <$> [1,2,3] <*> [10, 20] = [(1 +), (2 +), (3 +)] <*> [10, 20] = [11, 21, 12, 22, 13, 23]

  (+) <$> Just 3 <*> Just 5 = Just (3 + ) <*> Just 5 = Just 8

  (+) <$> readLn <*> readLn = ... 
well that depends on the inputs :)
Re:Why does Haskell, in your opinion, suck? by wirrbel on Sunday April 17, 2016 @11:39AM (#11514884)
indeed, fixed it, thx.