Skip to content

Standardize FFI Implementation #22

Description

@l-Shane-l

Standardize FFI Implementation

Description

Remove usage of Peek and Poke in .hsc files and standardize FFI to use function calls only. This requires modifying the C code to provide proper getters and setters for memory access.

Requirements

  • Remove Peek/Poke usage from .hsc files
  • Add getter/setter functions in tinywl.c
  • Update FFI bindings to use new functions
  • Ensure consistent memory access patterns

Acceptance Criteria

  • No more Peek/Poke usage in Haskell code
  • All memory access done through proper FFI function calls
  • Consistent getter/setter implementation in C code
  • All .hsc files converted to standard FFI approach

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions