Port regions to the latest transformers.

From this point library is compatible with ghc >= 7.8.