Refactor App.hs.
Remove unused pragmas.