Compatibility for base-4.8

Just an instance of the -XOverloadStrings w/ Foldable type-inference
issue...

(cherry picked from commit f68a4b8ab74874ae4a8e6f0cb0619f3d65370822)
Bump upper bound to allow `time-1.5`

(cherry picked from commit 78d6354559c8c1f6c5e40b5c6bf561ef4567ae4f)