Skip to content

"The size of Int is machine-dependent" when using genericSerial #532

@thomasjm

Description

@thomasjm

I think I'm running into a problem because genericSerial is defined in terms of Int:

genericSerial :: FieldReturnType 'True 'False be (SqlSerial Int) a => Text -> a

I'm trying to write my functions generically against backends, and using genericSerial requires me to add a FromBackendRow be Int constraint. However, that triggers the "explicitly sized integer" check.

I changed genericSerial to be generic over Integral types here: thomasjm@d4564da. Would you be interested in a PR? Thanks for the amazing library btw!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions