Skip to content

categorify Vectors #57

@zliu41

Description

@zliu41

We convert arbitrary Haskell types to Vectors of primitives for our C calling convention.

One possibility is to have some sequence type (lists?) handled directly by the plugin, the way we do with tuples and Either. However, I'm not certain about that, because repr = toList likely isn't going to inline properly?

This currently shows up in the Biquad conversion, where we get errors like

  • No instance for (HasRep (Data.Vector.Fusion.Bundle.Monadic.Bundle Data.Vector.Fusion.Util.Id Vector (Native Word32)))

  • No instance for (HasRep (Vector (Native Bool)))

  • No instance for (HasRep (Vector (Native Word32)))

(Extricated from https://kitty-hawk.atlassian.net/browse/SW-3169)

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