Next Atypical Types 61

A Spectacular Example

Here's a spectacular example, due to Andrew R. Koenig.

We will write a merge sort function.

Strategy:

We expect the type of this function to be

          (Ord a) => [a] -> [a]


Next Copyright © 1999,2008 Mark Dominus