Standard Haskell allows you to write integer literals in decimal (without any prefix), hexadecimal (preceded by 0x
or 0X
), and octal (preceded by 0o
or 0O
). The BinaryLiterals
extension adds the option of binary (preceded by 0b
or 0B
).
0b1111 == 15 -- evaluates to: True