[Git][ghc/ghc][wip/andreask/ticked_joins] Use a predicate for joinablility