on master help sign in
Annotate provenance terms
commitebac0885dbd763ba2d23a5e935e40a35374e3266 authorDavid Raymond Christiansen <david@davidchristiansen.dk> dateMon 16 Mar 2015, 20:45 (12 years ago) parent6c26814
1 file changed+3−1
src/Idris/Delaborate.hs+3−1
src/Idris/Delaborate.hs+3−1
@@ -199,7 +199,9 @@ pprintProv i e ExpectedType = text "Expected type"
199199pprintProv i e InferredVal = text "Inferred value"
200200pprintProv i e GivenVal = text "Given value"
201201pprintProv i e (SourceTerm tm)
202− = text "Type of " <> pprintTerm' i (zip (map fst e) (repeat False)) (delab i tm)
202+ = text "Type of " <>
203+ annotate (AnnTerm (zip (map fst e) (repeat False)) tm)
204+ (pprintTerm' i (zip (map fst e) (repeat False)) (delab i tm))
203205
204206pprintErr :: IState -> Err -> Doc OutputAnnotation
205207pprintErr i err = pprintErr' i (fmap (errReverse i) err)