Make isPredTy not use typeKind
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 2 May 2013 16:07:51 +0000 (17:07 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 3 May 2013 06:44:02 +0000 (07:44 +0100)
commitf3472f55a07d5a2aac79896508585bb4d121219b
tree337e3f3247c068dc3db4f03d3b6d9cc99d1b7a71
parent3722f034d0907fcd20179ce4dd91e53c51d4e87f
Make isPredTy not use typeKind

The pretty-printer uses isPredTy to decide whether to use "=>" or "->",
and typeKind crashes on ill-kinded types. But it's really unhelpful for
the pretty-printer to crash on an ill-kinded type, because then you can't
see it!
compiler/types/Type.lhs