Handle over-applied custom type errors too.
authorIavor S. Diatchki <diatchki@galois.com>
Wed, 13 Jan 2016 19:30:40 +0000 (11:30 -0800)
committerIavor S. Diatchki <diatchki@galois.com>
Wed, 13 Jan 2016 19:30:40 +0000 (11:30 -0800)
commit6ea24af9f22f6ea661d79623135f4cd31e28c6a2
treed06f768e4d24d213d847fd63bfa826b8465f26ff
parentc3f92464bf64dacae76dc9b3566df9a9f6b3a85b
Handle over-applied custom type errors too.

Consider

    type family F :: Type -> Type where
       F = TypeError (Text "Error")

Now, if we see something like `F Int` we should still report the custom
type error.
compiler/typecheck/TcRnTypes.hs
compiler/types/Type.hs