fix module scope for ghc7.x