Skip to content

Template haskell for generating Haskell records from C structs #289

@expipiplus1

Description

@expipiplus1

There's heaps of functionality in the generators regarding turning

typedef struct {
  double myDouble;
  size_t numInts;
  int *myInts;
} foo;

into

data Foo = Foo 
  { myDouble :: Double
  , myInts :: Vector Int32
  }

Wouldn't it be great to have a quasiquoter taking the former and outputting the latter, along with appropriate Storable or ToCStruct instances?

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