prog.c:1:1: error: unknown type name ‘data’
data ZipList a = ZL [a] a [a] deriving (Eq, Show)
^~~~
prog.c:1:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘a’
data ZipList a = ZL [a] a [a] deriving (Eq, Show)
^
prog.c:18:43: warning: missing terminating ' character
after (ZL ls x []) = ZL ls x [] -- Can't go any further right
^
prog.c:18:43: error: missing terminating ' character
after (ZL ls x []) = ZL ls x [] -- Can't go any further right
^~~~~~~~~~~~~~~~~~~~~~~
prog.c:23:44: warning: missing terminating ' character
before (ZL [] x rs) = ZL [] x rs -- Can't go any further left
^
prog.c:23:44: error: missing terminating ' character
before (ZL [] x rs) = ZL [] x rs -- Can't go any further left
^~~~~~~~~~~~~~~~~~~~~~