haskell/containers — pull request #17 by liyang (2012-10-02 01:58:43+00:00)
Title: Incorrect type signatures in Data.Int{Map,Set}

I'm writing some template-haskell that inspects the types of various methods under `Data.IntMap`, and I need to distinguish between the `Key` type versus an actual `Int`, e.g. `size` versus `findMin`.

The type signatures for `IntMap.fold*WithKey` are incorrectly annotated with `Int` instead of the `Key` synonym. The first commit fixes these.

The second commit moves the definition of `type Key = Int` to `Data.IntSet.Base` instead, and also annotates everything in `Data.IntSet` with `Key` as appropriate.