Question: wait, so if I include a native package, that makes my package a native package too?

Asked By
Asked At
2017-11-05 08:56:17

Found 15 possible answers.

User Answered At Possible Answer
benanderson 2017-11-05 08:56:24 Looks like it. :disappointed: makes sense.
zack869 2017-11-05 08:56:27 wow
benanderson 2017-11-05 08:58:48 well your package is a native package now it has native code in it.
jessta 2017-11-05 08:59:25 Yeah, any JavaScript negates all the Elm guarantees
zack869 2017-11-05 09:00:11 do core libraries get magical help from the compiler or something? not that I'm interested in duplicating that, I'm curious now how non-native packages end up calling the underlying web apis
jessta 2017-11-05 09:01:18 Core libraries are just reviewed and held to a higher standard
zack869 2017-11-05 09:02:05 oh I guess that is a "normal" native package why can I install that without becoming a native package?
jessta 2017-11-05 09:10:48 elm-lang packages are blessed There are some other exceptions given to some other packages that are reviewed by core devs
anttila 2017-11-05 09:15:35 Hmm... where can I add request headers? request = Http.get url (decodeDocument model)
jessta 2017-11-05 09:16:03 @anttila use Http.request to build a request
anttila 2017-11-05 09:18:50 still can't figure out the right syntax... It's just for the get, post/put/delete are all working
jessta 2017-11-05 09:21:27 Http.request takes one parameter, it's a record @anttila have a look at the implementation of Http.get for an example
anttila 2017-11-05 09:27:42 I guess this request = Http.get url (decodeDocuments model) needs to have the headers because of CORS on API for the request record? so can I add just that?
benanderson 2017-11-05 09:27:57 tl;dr: help me understand how to write data structures in a functional language. I'm totally lost as to how I could implement get or set. I thought about using a dict of dict of pixel, but the generating the original image gets quite tricky. i'm sure i'm just not understanding something well or have never seen an awesome approach to this problem.
jessta 2017-11-05 09:29:07 @anttila you don't need extra headers for your requests due to CORS You need extra headers in your respones

Related Questions