Skip to content

Support for integers bigger than Int32 #153

@Leonti

Description

@Leonti

Hi!
I'm trying to create a handler where one of the fields is Int32:
type DatePrice = Object "DatePrice" '[] '[Field "price" Int32 , Field "timestamp" Int64]

It fails because there is no Tovalue instance for Int64

maxBound for Int32 is 2147483647 so I can't use it for a timestamp.
Are there some limitations not allowing to have Int64 instance?
Should I use Double in this case?

P.S. Great library, by the way, really enjoying using it :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions