Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newFileReader :: MonadDOM m => m FileReader
- readAsArrayBuffer :: (MonadDOM m, IsBlob blob) => FileReader -> Maybe blob -> m ()
- readAsBinaryString :: (MonadDOM m, IsBlob blob) => FileReader -> Maybe blob -> m ()
- readAsText :: (MonadDOM m, IsBlob blob, ToJSString encoding) => FileReader -> Maybe blob -> Maybe encoding -> m ()
- readAsDataURL :: (MonadDOM m, IsBlob blob) => FileReader -> Maybe blob -> m ()
- abort :: MonadDOM m => FileReader -> m ()
- pattern EMPTY :: forall a. (Num a, Eq a) => a
- pattern LOADING :: forall a. (Num a, Eq a) => a
- pattern DONE :: forall a. (Num a, Eq a) => a
- getReadyState :: MonadDOM m => FileReader -> m Word
- getResult :: MonadDOM m => FileReader -> m (Maybe StringOrArrayBuffer)
- getResultUnsafe :: (MonadDOM m, HasCallStack) => FileReader -> m StringOrArrayBuffer
- getResultUnchecked :: MonadDOM m => FileReader -> m StringOrArrayBuffer
- getError :: MonadDOM m => FileReader -> m FileError
- loadStart :: EventName FileReader ProgressEvent
- progress :: EventName FileReader ProgressEvent
- load :: EventName FileReader UIEvent
- abortEvent :: EventName FileReader UIEvent
- error :: EventName FileReader UIEvent
- loadEnd :: EventName FileReader ProgressEvent
- newtype FileReader = FileReader {}
- gTypeFileReader :: JSM GType
Documentation
readAsArrayBuffer :: (MonadDOM m, IsBlob blob) => FileReader -> Maybe blob -> m () Source #
readAsBinaryString :: (MonadDOM m, IsBlob blob) => FileReader -> Maybe blob -> m () Source #
readAsText :: (MonadDOM m, IsBlob blob, ToJSString encoding) => FileReader -> Maybe blob -> Maybe encoding -> m () Source #
readAsDataURL :: (MonadDOM m, IsBlob blob) => FileReader -> Maybe blob -> m () Source #
abort :: MonadDOM m => FileReader -> m () Source #
getReadyState :: MonadDOM m => FileReader -> m Word Source #
getResult :: MonadDOM m => FileReader -> m (Maybe StringOrArrayBuffer) Source #
getResultUnsafe :: (MonadDOM m, HasCallStack) => FileReader -> m StringOrArrayBuffer Source #
getResultUnchecked :: MonadDOM m => FileReader -> m StringOrArrayBuffer Source #
newtype FileReader Source #
Functions for this inteface are in JSDOM.FileReader. Base interface functions are in: