@@ -285,10 +285,12 @@ splitOnLine l n fn = do
285285
286286replaceSplits :: String -> [[(Name, PTerm)]] -> Bool -> Idris [String]
287287replaceSplits l ups impossible
288− = updateRHSs 1 (map (rep (expandBraces l)) ups)
288+ = do ist <- getIState
289+ updateRHSs 1 (map (rep ist (expandBraces l)) ups)
289290 where
290− rep str [] = str ++ "\n"
291− rep str ((n, tm) : ups) = rep (updatePat False (show n) (nshow tm) str) ups
291+ rep ist str [] = str ++ "\n"
292+ rep ist str ((n, tm) : ups)
293+ = rep ist (updatePat False (show n) (nshow (resugar ist tm)) str) ups
292294
293295 updateRHSs i [] = return []
294296 updateRHSs i (x : xs)