You can use getCurrentTime: Task x Time
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Magnus, Jeff,
thanks for your help. This is for a regular single page app and I'm afraid that neither of your proposed solutions seems like a good fit. I prefer to stay within the StartApp framework and I don't want to use the TaskTutorial project. Instead I'm going to add the current date to the data feed of my API. I was hoping that I have missed something since I'm new to elm. I understand that getCurrentDate is not a pure function but I'm not sure that elm's purist approach is going to help it's wide adoption.
Magnus, Jeff,
thanks for your help. This is for a regular single page app and I'm afraid that neither of your proposed solutions seems like a good fit. I prefer to stay within the StartApp framework and I don't want to use the TaskTutorial project. Instead I'm going to add the current date to the data feed of my API. I was hoping that I have missed something since I'm new to elm. I understand that getCurrentDate is not a pure function but I'm not sure that elm's purist approach is going to help it's wide adoption.
The main reason for me not to use getCurrentTime is the required external dependency to task-tutorial. Perhaps it could make it's way into the Time module in elm-lang/core.
Magnus, Jeff,
thanks for your help. This is for a regular single page app and I'm afraid that neither of your proposed solutions seems like a good fit. I prefer to stay within the StartApp framework and I don't want to use the TaskTutorial project. Instead I'm going to add the current date to the data feed of my API. I was hoping that I have missed something since I'm new to elm. I understand that getCurrentDate is not a pure function but I'm not sure that elm's purist approach is going to help it's wide adoption.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Indeed. I think this is a mistake (and might not even be consistently the case, depending on the browser used). See https://github.com/evancz/elm-effects/issues/30.