add minimal pragma to pretty class
add Generic instance to Doc
fix hslint warnings