Skip to content

Additional Direction Instances #22

@ischeinfeld

Description

@ischeinfeld

Would it make sense to derive Ord, Enum, and Bounded instances for Direction g? I am working on a game that should work in any grid and it seems to me that "turning left," for example, is well defined in all grids and could be defined in terms of Enum and Bounded. Or perhaps some other functionality could be added for iterating through directions, maybe with a different type class?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions