[Haskell-cafe] checking types with type families