And we instead need to write primes = 2 : 3 : ([5 ..] `minus` composites).
Add a test checking that applyMerge implementations are productive given the above example, and fix ApplyMerge.DoublyLinkedList.applyMerge to pass the test.
If applyMerge = flip . ApplyMerge.DoublyLinkedList.applyMerge . flip, then we need to write primes = 2 : 3 : 5 : ([7 ..] `minus` composites) to get a productive output.
For
ApplyMerge.DoublyLinkedList.applyMerge
, the following is not productiveAnd we instead need to write
primes = 2 : 3 : ([5 ..] `minus` composites)
.Add a test checking that
applyMerge
implementations are productive given the above example, and fixApplyMerge.DoublyLinkedList.applyMerge
to pass the test.