Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Out of the box, it might not be the most intuitive text parsing tool indeed. It's trivial, but not immediately intuitive.

That said: strings are lists of chars, and Haskell is strong at pattern matching (esp within lists) in a bunch of different ways, so trivial text parsing tasks are trivial and intuitive in Haskell. For anything slightly more complex, there are regular expression and enumerating libraries which can do the job alright (and efficiently if I may say so).

EDIT: I'm sorry, can you give me an example of a problem so I can give you an example of a solution? :-)



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

Search: