Jonathan Lamothe on Nostr: TIL: data Foo = Bar { val :: Int } | Baz { val :: Int } is valid #Haskell. I wouldn't ...
TIL:
data Foo = Bar { val :: Int } | Baz { val :: Int }
is valid #Haskell. I wouldn't have thought you could define val twice like that.
Published at
2024-07-27 22:39:14Event JSON
{
"id": "0f009ee5711199014668d8a092ab2b670c150a8e49caea73b92bed99a59d7b62",
"pubkey": "900d18b7d419807178b843cd37bc8f06b8eb5734299f78d257ffb6d5dc46e8f9",
"created_at": 1722119954,
"kind": 1,
"tags": [
[
"p",
"a829e38389e704710d5b5b780050e89aabb0bc130558739a2d84990762b39bcc",
"wss://relay.mostr.pub"
],
[
"t",
"Haskell"
],
[
"proxy",
"https://social.jlamothe.net/objects/c35d279b-9566-a577-1289-8e4369183464",
"activitypub"
]
],
"content": "TIL:\n data Foo = Bar { val :: Int } | Baz { val :: Int }\nis valid #Haskell. I wouldn't have thought you could define val twice like that.",
"sig": "faa0fcad16fe82eeedcaf1c5a0610f300e3e42290179fea25453e0158cbe7e98727b51c991e0299fb814c9b72cfebf68a0d8c48fea505ec1b01f8b41dc975232"
}