Closed Rotaerk closed 4 years ago
Great, thanks! Could you please change a few small things in Numeric.PrimBytesTest
?
CBool
test or suppress the orphan instance warning in the file.type TypeTriples
type SamePrimRepTypes
. These may be any pairs of types containing ({CType wrapper} <-> {underlying type}), e.g. '(Double, CDouble)
, or '(Either Word8 Int64, Either CBool CLLong)
(just select such that the underlying type independent of a platform x64/x32).How's this?
Cool! Sorry I forgot about SamePrimRep
boilerplate
To resolve #20, added the
GeneralizedNewtypeDeriving
andTypeInType
extensions, importedForeign.C.Types
, and added aderiving instance PrimBytes
for every C-type.