..and it's for an audio programming language, so the ability to read and write binary data would be fantastic.
--
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.
TypedArrays and DataViews
Please add your own ideas to this thread. Once we have compiled a list of use cases, we can look at the JS Apis available under the Web Platform for Files, ArrayBuffers, Typed Arrays etc. and think how these could be exposed to Elm.
I think this is the sort of code I would like to be able to write to do signed S3 uploads
FileReader API
readFile : FileRef -> Task Error Blob
and in the Http library
blobData : Blob -> Http.Data
such that
get ("signature" := string) "/get_signature"
`Task.andThen`
\sig ->
readFile ref
`Task.andThen`
\content ->
let
body =
multipart
[ ("signature", stringData signature)
, ("file", blobData content)
]
in
Http.send defaultSettings
{ verb = "POST"
, headers = [("Origin", origin)]
, url = "http://bucket-name.s3.amazonaws.com/"
, body = body
}
|> Http.fromJson ("ETag" := string)
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/u_ui3PlDwLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss+unsubscribe@googlegroups.com.
--
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+unsubscribe@googlegroups.com.