@@ -6,7 +6,7 @@ module Elm.Name
7 , toBuilder
7 , toBuilder
9− , localFromInt
9+ , addIndex
10 , toCompositeName
10 , toCompositeName
11 , int, float, bool, char, string
11 , int, float, bool, char, string
12 , maybe, list, array, tuple
12 , maybe, list, array, tuple
@@ -53,9 +53,9 @@ toShort =
53 error "TODO"
53 error "TODO"
56−localFromInt :: Int -> Name
56+addIndex :: Name -> Int -> Name
57−localFromInt n =
57+addIndex name i =
58− Text.pack ('x' : show n)
58+ Text.append name (Text.pack (show i))
61toCompositeName :: Set.Set Name -> Name
61toCompositeName :: Set.Set Name -> Name