I’ve seen this in a few places:
data T = T a :-> b
Notably in quickcheck we have
data Fun a b = Fun (a :-> b, b) (a -> b)
What is the :-> and how does it differ from ->?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Operators beginning with a colon is a constructor or type name. In this case it is a type name for a data type specific to quickcheck, but in general the symbol :-> could be used for any constructor or type name as you like (it’s not part of the language proper).
The definition of :-> in quickcheck: