Extract typeclass to a file
Remove unnecessary "main = hspec spec" lines
Be consistent about whitespace and import order