Is there a way to get the memory size of a datatype in Haskell ?
E.g : I have a list of item a, and I want to limit this list to x bytes in memory... I will reject all the next items to add above that threshold...
Is there a way to get the memory size of a datatype in Haskell ?
E.g : I have a list of item a, and I want to limit this list to x bytes in memory... I will reject all the next items to add above that threshold...