{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.ValidityState
(getValueMissing, getTypeMismatch, getPatternMismatch, getTooShort,
getTooLong, getRangeUnderflow, getRangeOverflow, getStepMismatch,
getBadInput, getCustomError, getValid, ValidityState(..),
gTypeValidityState)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Enums
getValueMissing :: (MonadDOM m) => ValidityState -> m Bool
getValueMissing self
= liftDOM ((self ^. js "valueMissing") >>= valToBool)
getTypeMismatch :: (MonadDOM m) => ValidityState -> m Bool
getTypeMismatch self
= liftDOM ((self ^. js "typeMismatch") >>= valToBool)
getPatternMismatch :: (MonadDOM m) => ValidityState -> m Bool
getPatternMismatch self
= liftDOM ((self ^. js "patternMismatch") >>= valToBool)
getTooShort :: (MonadDOM m) => ValidityState -> m Bool
getTooShort self = liftDOM ((self ^. js "tooShort") >>= valToBool)
getTooLong :: (MonadDOM m) => ValidityState -> m Bool
getTooLong self = liftDOM ((self ^. js "tooLong") >>= valToBool)
getRangeUnderflow :: (MonadDOM m) => ValidityState -> m Bool
getRangeUnderflow self
= liftDOM ((self ^. js "rangeUnderflow") >>= valToBool)
getRangeOverflow :: (MonadDOM m) => ValidityState -> m Bool
getRangeOverflow self
= liftDOM ((self ^. js "rangeOverflow") >>= valToBool)
getStepMismatch :: (MonadDOM m) => ValidityState -> m Bool
getStepMismatch self
= liftDOM ((self ^. js "stepMismatch") >>= valToBool)
getBadInput :: (MonadDOM m) => ValidityState -> m Bool
getBadInput self = liftDOM ((self ^. js "badInput") >>= valToBool)
getCustomError :: (MonadDOM m) => ValidityState -> m Bool
getCustomError self
= liftDOM ((self ^. js "customError") >>= valToBool)
getValid :: (MonadDOM m) => ValidityState -> m Bool
getValid self = liftDOM ((self ^. js "valid") >>= valToBool)