« Previous | Next » 

Revision e7aa0b03

IDe7aa0b0309381344d1dc360ffb27a78ac5cc95fc
Parent 30ce253e
Child f5d13a77

Added by Klaus Aehlig almost 11 years ago

Add type annotation to avoid monomorphism restriction

Even though we need the let-bound variable showMoves only
at type [(String, String)] -> IO (), it's most general type
would be (PrintfArg a, PrintfArg b) => [(a, b)] -> IO ().
This causes the monomorphism restriction apply to that binding,
which is a warning (and, thanks to -Werror, fatal) on some
ghc versions.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Thomas Thrainer <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences