Skip to content

Make read accept binary integer notation #177

@damhiya

Description

@damhiya

The BinaryLiterals extension, included in GHC2021, enables binary integer notation (a binary sequence prefixed by 0b or 0B), but the current implementation of read function rejects such input. I propose modifying the read function, along with readEither and readMaybe, to accept binary integer notation in order to maintain consistency with the GHC2021 syntax.

related issue : https://gitlab.haskell.org/ghc/ghc/-/issues/23518
merge request : https://gitlab.haskell.org/ghc/ghc/-/merge_requests/10680

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedApproved by CLC votebase-4.21Implemented in base-4.21 (GHC 9.12)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions