implementing show for literaltype