-
Notifications
You must be signed in to change notification settings - Fork 88
How is CountOf
intended to be used?
#372
Comments
See also #368 - recommended adding |
Nice, thanks - seems to be the same problem. |
so the idea of Also I think we just need to put some lipstick on the interfaces (and here suggestions are more than welcome to make it less painful to work with; One of the issue is that the current state of affair (haskell / base) is quite poor in term of integral APIs, so we don't have anything useful to re-use. |
length
returns aCountOf
value, but these seem pretty painful to work with. In some code I'm working with, I need to build a count of bytes to supply to OpenGL. This means multiplying aCountOf
by the size in bytes of a single element, and then turning the whole thing to aInt
, but there is no easy way to do this (there is no eliminator forCountOf
, for one).The text was updated successfully, but these errors were encountered: