concept byte in category haskell

This is an excerpt from Manning's book Get Programming with Haskell.
As you can see, the Integer type fits more closely with the mathematical sense of what an integer is: any whole number. Unlike the Int type, the Integer type isn’t bounded by memory limitations framed in terms of bytes.
You need to know the number of bytes in this text. For ASCII text, this would be the length of the text, but in this case, using T.length gives you only the number of characters (5). How can you find the number of bytes?
To convert nagarjunaText to a vector of bytes, you can’t simply use BC.pack because BC.pack is of type String -> ByteString, so first you’d need to use T.unpack and then BC.pack.
Listing 25.15. Attempting to transform Text into a ByteString
nagarjunaB :: B.ByteString nagarjunaB = (BC.pack . T.unpack) nagarjunaTextIf you look at the type signature, you should have your Unicode safely represented as bytes. But if you convert back, you see this isn’t the case. Note that you need to do a qualified import of Data.Text.IO to ensure that you’re printing the text properly: