Add haddock doc for onBasis