@@ -6,7 +6,7 @@ module Elm.Name
66 , toString
77 , toBuilder
88 , toShort
9− , localFromInt
9+ , addIndex
1010 , toCompositeName
1111 , int, float, bool, char, string
1212 , maybe, list, array, tuple
@@ -53,9 +53,9 @@ toShort =
5353 error "TODO"
5454
5555
56−localFromInt :: Int -> Name
57−localFromInt n =
58− Text.pack ('x' : show n)
56+addIndex :: Name -> Int -> Name
57+addIndex name i =
58+ Text.append name (Text.pack (show i))
5959
6060
6161toCompositeName :: Set.Set Name -> Name