prog.c:1:1: error: unknown type name ‘data’
data FSM state input output = FSM -- Input and output alphabet are constricted at compile time by datatype
^~~~
prog.c:1:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘state’
data FSM state input output = FSM -- Input and output alphabet are constricted at compile time by datatype
^~~~~
prog.c:1:10: error: unknown type name ‘state’
prog.c:8:1: error: unknown type name ‘data’
data OutFunc state input output
^~~~
prog.c:8:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘state’
data OutFunc state input output
^~~~~
prog.c:8:14: error: unknown type name ‘state’
prog.c:15:26: warning: missing terminating ' character
-- finalState = foldl' trans start input
^
prog.c:15:26: error: missing terminating ' character
-- finalState = foldl' trans start input
^~~~~~~~~~~~~~~~~~~
prog.c:37:3: error: unknown type name ‘where’
where
^~~~~
prog.c:38:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
trans :: EvenState -> Binary -> EvenState
^