GHCi> compare 2 3
LT
GHCi> compare 3 3
EQ
GHCi> compare 4 3
GT
I think EQ means equal, but what do LT and GT mean?
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.
compare 2 3 = LT— 2 is Less Than 3compare 3 3 = EQ— 3 is EQual to 3compare 4 3 = GT— 4 is Greater Than 3It’s unfortunate that the documentation for
Orderingdoes not explicitly spell this out.