Hacker News new | ask | show | jobs
by eru 5453 days ago
Interestingly, refactoring usually works quite well for functional Haskell code without tests just relying on the types. (Of course the types won't help you in more imperative sections of your code, i.e. it's hard to guarantee a specific order of actions in the IO Monad with types only.)
1 comments

You mean just like in Java?
Yes. But the pure part of your program tends to be bigger in Haskell than in Java.
And the type system (and compiler) help you know what's pure and what's not.