You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The newtype I8 in Data.Text.Foreign does not expose its constructor. Is that intentional?
I would like to use I8 as a semantic distinction to prevent mixing up byte-offsets and character-offsets, in code that ultimately passes the values to takeWord8 and dropWord8.
The text was updated successfully, but these errors were encountered:
I'm not sure whether the constructor is intentionally hidden, but since it's an instance of Integral you can easily convert to and from it with fromIntegral. What you describe is already exactly the purpose of I8 as I understand it. Do you still need the constructor to be exposed?
The
newtype I8
inData.Text.Foreign
does not expose its constructor. Is that intentional?I would like to use
I8
as a semantic distinction to prevent mixing up byte-offsets and character-offsets, in code that ultimately passes the values totakeWord8
anddropWord8
.The text was updated successfully, but these errors were encountered: