An elaboration of Kmett's port of Bryan O'Sullivan's attoparsec from Haskell to Scala