Module

JS.FileIO

#Filespec

type Filespec = { contents :: String, name :: String }

the result of a file load

#loadTextFile

loadTextFile :: String -> Aff Filespec

load a text file from a DOM element with the supplied id

#loadBinaryFileAsText

loadBinaryFileAsText :: String -> Aff Filespec

load a binary file from a DOM element with the supplied id and tunnel it as a binary string

#saveTextFile

saveTextFile :: Filespec -> Effect Unit

save a text file

Modules