4 ms·
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
by Haskell-mouse 7y ago
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.