This code seems to use the @
symbol to annotate a function signature,
seemingly using it to save the type into a variable?
https://github.com/hlian/mathbot/blob/master/web/src/Main.hs#L63
mathbot cmd@(Just (Command "math" user channel (Just text)))
Attempting to use a similar syntax results in parse error on input ‘@’
.
Does this do what I think it does? And if so where is it defined come from? And how does one define a function that can operate within a type signature?