I'm trying to express sum types. The equivalent H...
# getting-started
c
I'm trying to express sum types. The equivalent Haskell code would be something like this:
Copy code
data Envelope e a = Success a | Error e String