Skip to content

Make Method functions more polymorphic #11

@lboklin

Description

@lboklin

For example

instance Method "some_func" GodotSpatial (Int -> IO GodotVector3) where
...

would be easier to use if it was

instance (GodotSpatial :< a) => Method "some_func" a (Int -> IO GodotVector3) where
...

so that one can write
v <- some_func mySprite3D 3
instead of
v <- some_func (safeCast mySprite3D :: GodotSpatial) 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions