[elm-discuss] Re: Date type not recognized
Hi Casper, Correct, the `Date` module (and type) are not imported or exposed by default. You can find the default imports here: http://package.elm-lang.org/packages/elm-lang/core/latest To make `Date` available in your module, you can use `import Date exposing (Date)`. The "exposing" part means you can reference the `Date` type unqualified as `Date` rather than `Date.Date`, but other functions will only be available when qualified (e.g. `Date.fromString`) Good luck! Op dinsdag 27 juni 2017 15:03:54 UTC+2 schreef Casper Bollen: > > For example when I use: > > type alias Test = { date : Date } > > I get an Cannot find type Date error > > On Tuesday, June 27, 2017 at 3:00:30 PM UTC+2, Casper Bollen wrote: >> >> When I want to use the Date type, it isn't recognized. Isn't this type >> automatically loaded with the core libs?? >> > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Developing with Webpack 3 and hotloading
Thank you so much. I've been looking into the hot loader, and wasn't quite able to figure out why hot-loader kept losing state on compile errors. Apparently, this is needed (as pointed out in your webpack.js file) new webpack.NoEmitOnErrorsPlugin() -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Date type not recognized
For example when I use: type alias Test = { date : Date } I get an Cannot find type Date error On Tuesday, June 27, 2017 at 3:00:30 PM UTC+2, Casper Bollen wrote: > > When I want to use the Date type, it isn't recognized. Isn't this type > automatically loaded with the core libs?? > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Date type not recognized
When I want to use the Date type, it isn't recognized. Isn't this type automatically loaded with the core libs?? -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.