Updated to use InstanceSigs (requires GHC >= 7.6).