Better HN
topnewbestaskshowjobs
Log inSign up

Haskell-mouse

5 karma · joined Jul 19, 2019 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

Hi! I am one the author of this post. I agree that Singletons are ugly. But:

1) Without them, creating a bridge between types and values became a real hell. 2) HasCallstack just gives you a place of an exception. It does not give you a cause. And part of errors even does not lead to exceptions at all.

Just want to say, that idea described in the post arose only after hard debugging. And using singletons was much easies and more reliable. And we tried to explain and analyse our personal experience.