Applicative instance for EnvT

Patch as per brief IRC discussion.