basic parsing for typeclass instances