I'd define a Haskell type, then the TH macro would generate the function for building and validating it from the foreign data.
I'd define a Haskell type, then the TH macro would generate the function for building and validating it from the foreign data.
Once you learn to think in terms of types, it's hard to remember that other developers don't.
Once you learn to think in terms of types, it's hard to remember that other developers don't.
It's too much overhead to bubble errors up from that deep into the logic
It's too much overhead to bubble errors up from that deep into the logic
I'm completely ok with crashing if that happens. It means you've entered silly input. So there are unwraps everywhere. Idk what a better solution would be.
I'm completely ok with crashing if that happens. It means you've entered silly input. So there are unwraps everywhere. Idk what a better solution would be.
My answer: "That is what they do"
My answer: "That is what they do"