prog.c:1:1: error: unknown type name ‘data’
data Binary = Zero | One deriving (Enum, Eq, Show)
^~~~
prog.c:1:15: error: ‘Zero’ undeclared here (not in a function)
data Binary = Zero | One deriving (Enum, Eq, Show)
^~~~
prog.c:1:22: error: ‘One’ undeclared here (not in a function)
data Binary = Zero | One deriving (Enum, Eq, Show)
^~~
prog.c:1:26: error: expected ‘,’ or ‘;’ before ‘deriving’
data Binary = Zero | One deriving (Enum, Eq, Show)
^~~~~~~~
prog.c:13:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘--’ token
-- Can be read in a tabular style
^~