Hacker News new | past | comments | ask | show | jobs | submit login

That doesn't exactly give a good error message, though:

  > strSum "10 20 x"
  Left "Prelude.read: no parse"
But yeah, I didn't remember "mapM". mapM f = sequence . fmap f, which is what I used.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: