Search results
toEnum :: forall a. BoundedEnum a => Int -> Maybe a
toEnum :: Int -> Maybe ReadyState
toEnumDeltaMode :: Int -> Maybe DeltaMode
toEnumEventPhase :: Int -> Maybe EventPhase
toEnumReadyState :: Int -> Maybe ReadyState
toEnumReadyState :: Int -> Maybe ReadyState
toEnumBinaryType :: Int -> Maybe BinaryType
toEnumReadyState :: Int -> Maybe ReadyState
toEnumKeyLocation :: Int -> Maybe KeyLocation
toEnumWithDefaults :: forall a. BoundedEnum a => a -> a -> Int -> a
Like toEnum but returns the first argument if x is less than
fromEnum bottom and the second argument if x is greater than
fromEnum top.
toEnumWithDefaults False True (-1) -- False
toEnumWithDefaults False True 0 -- False
toEnumWithDefaults False True 1 -- True
toEnumWithDefaults False True 2 -- True
No further results.