Skip to content

Read instance for bounded numbers wraps instead of throwing an error #65

Description

@ludat

./executable --server.port=100000000000000 results in a random int

This is caused by the Read instance for Int for example

Prelude> read "10000000000000000000" :: Int
-8446744073709551616

I expect this to inform the user that they are doing something that the program will interpret in a weird way

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions