Skip to content
  • Simon Peyton Jones's avatar
    Add assertion checks for mkCoVar/mkTyVar · ac704fca
    Simon Peyton Jones authored
    A type variable has a flag saying whether it is a *type* variable or
    a *coercion* variable.  This patch adds assertions to check the flag.
    
    And it adds fixes to places which were Wrong (and hence fired the
    assertion)! 
    
    Also removed isCoVar from Coercion, since it's done by Var.isCoVar.
    
    
    ac704fca