planHeader r (fa :: Maybe DFunctAr) n c (vi,vo) =
text ";;"
<+> (prettySpanLoc $ r_span r)
+ <+> text "ruleix=" <> pretty (r_index r)
<+> text "fa=" <> maybe empty
(\(f,a) -> pretty f <> text "/" <> pretty a)
fa
iniHeader r c =
text ";;"
<+> (prettySpanLoc $ r_span r)
+ <+> text "ruleix=" <> pretty (r_index r)
<+> text "cost=" <> pretty c
<+> text "head=" <> pretty (r_head r)
<+> text "res=" <> pretty (r_result r)
renderFailedInit rd (r,ps) =
text ";; failed initialization attempts for"
<//> (prettySpanLoc $ r_span r)
+ <+> text "ruleix=" <> pretty (r_index r)
<//> indent 2 (vsep $ map (renderPartialPlan rd) ps)
renderFailedUpdate rd (r,i,ps) =
text ";; failed update plans for"
<//> (prettySpanLoc $ r_span r)
- <+> (text "evalix=" <> pretty i)
+ <+> text "ruleix=" <> pretty (r_index r)
+ <+> (text "evalix=" <> pretty i)
<//> indent 2 (vsep $ map (renderPartialPlan rd) ps)
renderFailedQuery rd (r,pbce) =
text ";; failed query attempts for"
<//> (prettySpanLoc $ r_span r)
+ <+> text "ruleix=" <> pretty (r_index r)
<//>
case pbce of
PBCWrongFunctor f -> "wrong functor" <+> squotes (pretty f)