[Git][ghc/ghc][wip/jeltsch/text-read-implementation-into-base] 31 commits: Check that shift values are valid