
24 Dec
2010
24 Dec
'10
9:42 a.m.
Hi guys,
You could use ADNS.Endian.endian from package hsdns in your Setup.hs to define endianness at compile time.
Cool, it's already there! However I would not recommend to let a low-level library depend on a higher-level one. I think it would be cleaner to move the ADNS.Endian module to storable-endian package or even to a separate package.
yes, I agree. hsdns should re-use storable-endian, not the other way round. The API offered by storable-endian is rather similar to the functions hsdns currently uses internally, so it should be fairly straightforward to adapt. Take care, Peter