tightened import statements in P27.hs