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

Your two datatypes are representationally equal. So would be very surprised by handrolling the datatype maling any difference. The instance however might make more sense


Indeed. The folklore I heard is that you can get performance gains because with the handrolled version, GHC is able to inline the instance dictionaries.




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

Search: