The underlying problem is probably that a parameter with an explicit type should be in parentheses.  Perhaps you can get away without them in some situations, but I usually see `{}` for making a function body a block or for pattern matching anonymous functions.