Skip to content

Commit

Permalink
Slightly neater rendering of names generated in where clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinb committed Nov 21, 2012
1 parent 17d2cea commit cea7205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Idris/ElabDecls.hs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ elabClause info tcgen (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
checkInferred fc (delab' i crhs True) rhs
return $ Right (clhs, crhs)
where
decorate x = UN (show x ++ "#" ++ show cnum ++ "#" ++ show fname)
decorate (NS x ns) = NS (UN ('#':show x)) (ns ++ [show cnum, show fname])
decorate x = NS (UN ('#':show x)) [show cnum, show fname]

pinfo ns ps i
= let ds = concatMap declared ps
newps = params info ++ ns
Expand Down

0 comments on commit cea7205

Please sign in to comment.