Add missing Cast cases to libCase and scExpr
[ghc-hetmet.git] / compiler / simplCore / LiberateCase.lhs
index c29a5b9..eebb11c 100644 (file)
@@ -225,6 +225,7 @@ libCase env (Lit lit)               = Lit lit
 libCase env (Type ty)          = Type ty
 libCase env (App fun arg)       = App (libCase env fun) (libCase env arg)
 libCase env (Note note body)    = Note note (libCase env body)
+libCase env (Cast e co)         = Cast (libCase env e) co
 
 libCase env (Lam binder body)
   = Lam binder (libCase (addBinders env [binder]) body)