MonadReader instance corrected

The original code misses a type variable resulting in the compilation error. This patch introduces the type variable.