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

It's true that you can't replace arbitrary pieces with no source changes in Haskell. On the other hand, there are a few approaches to making this easier - implicit parameters seems made for this kind of thing, "foo = fooBy whatever" as a pattern leaves it easy to swap in an alternative; and of course keeping functions pure it becomes less necessary to swap out internal bits because they don't matter.


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

Search: