Skip to content

[fork-ffi] purescript-lua-prelude: ordBooleanImpl crashes on < for Boolean in Lua 5.1 #66

Description

@Unisay

Tracking entry (detail in package repo).

prelude Data.Ord.ordBooleanImpl aliases the shared unsafeCoerceImpl, which compares with x < y. Lua 5.1 errors on relational operators between booleans (attempt to compare two boolean values), so every Ord Boolean operation (compare, <, min, max, clamp) crashes at runtime. Same class as the other prelude FFI divergences; fix carries over @UnrelatedString's #3 implementation with a regression test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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