Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- 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 :: (Eq a, Num a) => a
- pattern LOADING :: (Eq a, Num a) => a
- pattern DONE :: (Eq a, Num 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:
Instances
FromJSVal FileReader Source # | |
Defined in JSDOM.Types fromJSVal :: JSVal -> JSM (Maybe FileReader) # fromJSValUnchecked :: JSVal -> JSM FileReader # fromJSValListOf :: JSVal -> JSM (Maybe [FileReader]) # fromJSValUncheckedListOf :: JSVal -> JSM [FileReader] # | |
PFromJSVal FileReader Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> FileReader # | |
PToJSVal FileReader Source # | |
Defined in JSDOM.Types pToJSVal :: FileReader -> JSVal # | |
ToJSVal FileReader Source # | |
Defined in JSDOM.Types toJSVal :: FileReader -> JSM JSVal # toJSValListOf :: [FileReader] -> JSM JSVal # | |
MakeObject FileReader Source # | |
Defined in JSDOM.Types makeObject :: FileReader -> JSM Object # | |
IsEventTarget FileReader Source # | |
Defined in JSDOM.Types | |
IsGObject FileReader Source # | |
Defined in JSDOM.Types typeGType :: FileReader -> JSM GType |