achirkin / easytensor

Many-dimensional type-safe numeric ops
https://hackage.haskell.org/package/easytensor
BSD 3-Clause "New" or "Revised" License
46 stars 2 forks source link

Added PrimBytes instances for C-types. #24

Closed Rotaerk closed 4 years ago

Rotaerk commented 4 years ago

To resolve #20, added the GeneralizedNewtypeDeriving and TypeInType extensions, imported Foreign.C.Types, and added a deriving instance PrimBytes for every C-type.

achirkin commented 4 years ago

Great, thanks! Could you please change a few small things in Numeric.PrimBytesTest?

Rotaerk commented 4 years ago

How's this?

achirkin commented 4 years ago

Cool! Sorry I forgot about SamePrimRep boilerplate