Text.Read.read refuses to parse binary integer literal
Motivation
BinaryLiterals
extension enables binary integer notation (prefix 0b
or 0B
) and is included in GHC2021
language.
But current read
(and it's family readEither
and readMaybe
) implementation refuses to parse such input.
Proposal
I think read
should deal with such binary integer notation.
May I open a merge request if this is desirable?