What kind of novel is hamlet?

It's no kind of novel, it's a play. Plays in published form are called closet dramas.