prog.c:2: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:2: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:2:10: error: unknown type name ‘state’
prog.c:9:1: error: unknown type name ‘data’
data OutFunc state input output
^~~~
prog.c:9:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘state’
data OutFunc state input output
^~~~~
prog.c:9:14: error: unknown type name ‘state’
prog.c:16:26: warning: missing terminating ' character
-- finalState = foldl' trans start input
^
prog.c:16:26: error: missing terminating ' character
-- finalState = foldl' trans start input
^~~~~~~~~~~~~~~~~~~