[C2hs] patch applied (c2hs): Rename parser state fields, change get/setInput type and tidy imports