Better Way to Define an Enum in Haskell May 1, 2023 by Tarik data MyDataType = Foo | Bar | Baz deriving (Enum)