Skip to main content


TIL:
data Foo = Bar { val :: Int } | Baz { val :: Int }

is valid #Haskell. I wouldn't have thought you could define val twice like that.

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.