You don't have to spell out all the extensions in the source file itself. Common extensions that are used by all/most modules can be listed in the project's cabal file. In mtl's case:
extensions:
MultiParamTypeClasses
FunctionalDependencies
FlexibleInstances