Skip to content

item function should return a Maybe #3

@MonaMayrhofer

Description

@MonaMayrhofer

Is there a reason that the item function does not return Maybe DOMRect?

foreign import item :: DOMRectList -> Int -> DOMRect

As far as I can tell, the javascript is just a regular indexing into a collection, which may or may not return null, which should definitely be represented in the type system.

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