Under Windows length appears to refer to the number of underlying bytes instead of the number of 16-bit codepoints, which is at odds with the rest of the API (and other libraries, e.g. text). numWord, even though it is present in the Short.Word16 module, is not exposed in a cross-platform fashion.