Added explicit type signatures for GHC 7.8.2