Re: [elm-discuss] Confused type definition

2016-09-05 Thread Luis Fei
e) about union types. The guide is recommended, > specifically the above is like the example > http://guide.elm-lang.org/types/union_types.html#anonymous-users, where > Config is like User in that example and ConfigConstructor is like Named > in that example. > ​ > > 2016-09-05 12:22

[elm-discuss] Confused type definition

2016-09-05 Thread Luis Fei
Hello, I just tried to look into elm-sortable-table's source code, and this `Config` type got me confused https://github.com/evancz/elm-sortable-table/blob/master/src/Table.elm#L96-L102 I'll paste it here for convenience type Config data msg = Config { toId : data -> String , toMsg :

[elm-discuss] How to map multi-level nesting components in 0.17

2016-05-17 Thread Luis Fei
Hi, I was trying to upgrade from 0.16 to 0.17, and meet this problem I have a Main.view which contains a Tab.view, and Tab.view contains a LogList.view, so i change the Signal.forwardTo part like this: -- This is Main module type alias Model = { tabModel : Tab.Model , logsModel :