Add missing case for documented types in the type desugarer
authordavve@dtek.chalmers.se <unknown>
Fri, 29 Dec 2006 16:32:24 +0000 (16:32 +0000)
committerdavve@dtek.chalmers.se <unknown>
Fri, 29 Dec 2006 16:32:24 +0000 (16:32 +0000)
compiler/typecheck/TcHsType.lhs

index 4d3224c..7eac2a2 100644 (file)
@@ -506,6 +506,9 @@ ds_type full_ty@(HsForAllTy exp tv_names ctxt ty)
 
 ds_type (HsSpliceTy {}) = panic "ds_type: HsSpliceTy"
 
 
 ds_type (HsSpliceTy {}) = panic "ds_type: HsSpliceTy"
 
+ds_type (HsDocTy ty _)  -- Remove the doc comment
+  = dsHsType ty
+
 dsHsTypes arg_tys = mappM dsHsType arg_tys
 \end{code}
 
 dsHsTypes arg_tys = mappM dsHsType arg_tys
 \end{code}