OvermindDL1 / bucklescript-tea

TEA for Bucklescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File module?

chadselph opened this issue · comments

It seems like there's no port of Elm's File module. I tried to get around this with

          input'(
            [type'("file"), onChange(s => GotFile(s))],
            [text("ok")],
          )

but the callback just uses .value which is just a string of a (fake) file path. I'm sure I could use on("change"... but I couldn't figure out how to write the JSON decode I needed to get the event into a javascript File.