This script shows some of the built-in operators provided by Hugs. Note that only text between > and -- is read by the Hugs interpreter. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Ints > result1 = 4^2 + 3 * 2 -- = 22 > result2 = result1 `mod` 3 -- = 1 > result3 = -result1 `div` 2 >= 4 -- = False Note: Hugs seems to have two distinct integer types: Int and Integer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Bools > result4 = True && False || not False -- = True ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chars > isDigit ch = ('0' <= ch) && (ch <= '9') > newline = '\n' ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Strings > batman = "bat" ++ "man" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Floats > e = exp 1 > result5 = e**pi -- = 23.1407 > result6 = pi + e * result5 / 4.3 -- = 17.7702 > result7 = acos(cos(pi)) -- = 3.14159