Shpadoinkle-widgets-0.2.0.1: A collection of common reusable types and components.

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Widgets.Types.Remote

Documentation

data Remote e a Source #

Constructors

Success a 
Failure e 
Loading 
NotAsked 
Instances
Monad (Remote e) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

(>>=) :: Remote e a -> (a -> Remote e b) -> Remote e b Source #

(>>) :: Remote e a -> Remote e b -> Remote e b Source #

return :: a -> Remote e a Source #

fail :: String -> Remote e a Source #

Functor (Remote e) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

fmap :: (a -> b) -> Remote e a -> Remote e b Source #

(<$) :: a -> Remote e b -> Remote e a Source #

Applicative (Remote e) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

pure :: a -> Remote e a Source #

(<*>) :: Remote e (a -> b) -> Remote e a -> Remote e b Source #

liftA2 :: (a -> b -> c) -> Remote e a -> Remote e b -> Remote e c Source #

(*>) :: Remote e a -> Remote e b -> Remote e b Source #

(<*) :: Remote e a -> Remote e b -> Remote e a Source #

Foldable (Remote e) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

fold :: Monoid m => Remote e m -> m Source #

foldMap :: Monoid m => (a -> m) -> Remote e a -> m Source #

foldr :: (a -> b -> b) -> b -> Remote e a -> b Source #

foldr' :: (a -> b -> b) -> b -> Remote e a -> b Source #

foldl :: (b -> a -> b) -> b -> Remote e a -> b Source #

foldl' :: (b -> a -> b) -> b -> Remote e a -> b Source #

foldr1 :: (a -> a -> a) -> Remote e a -> a Source #

foldl1 :: (a -> a -> a) -> Remote e a -> a Source #

toList :: Remote e a -> [a] Source #

null :: Remote e a -> Bool Source #

length :: Remote e a -> Int Source #

elem :: Eq a => a -> Remote e a -> Bool Source #

maximum :: Ord a => Remote e a -> a Source #

minimum :: Ord a => Remote e a -> a Source #

sum :: Num a => Remote e a -> a Source #

product :: Num a => Remote e a -> a Source #

Traversable (Remote e) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

traverse :: Applicative f => (a -> f b) -> Remote e a -> f (Remote e b) Source #

sequenceA :: Applicative f => Remote e (f a) -> f (Remote e a) Source #

mapM :: Monad m => (a -> m b) -> Remote e a -> m (Remote e b) Source #

sequence :: Monad m => Remote e (m a) -> m (Remote e a) Source #

Alternative (Remote e) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

empty :: Remote e a Source #

(<|>) :: Remote e a -> Remote e a -> Remote e a Source #

some :: Remote e a -> Remote e [a] Source #

many :: Remote e a -> Remote e [a] Source #

(Eq a, Eq e) => Eq (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

(==) :: Remote e a -> Remote e a -> Bool Source #

(/=) :: Remote e a -> Remote e a -> Bool Source #

(Ord a, Ord e) => Ord (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

compare :: Remote e a -> Remote e a -> Ordering Source #

(<) :: Remote e a -> Remote e a -> Bool Source #

(<=) :: Remote e a -> Remote e a -> Bool Source #

(>) :: Remote e a -> Remote e a -> Bool Source #

(>=) :: Remote e a -> Remote e a -> Bool Source #

max :: Remote e a -> Remote e a -> Remote e a Source #

min :: Remote e a -> Remote e a -> Remote e a Source #

(Read a, Read e) => Read (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

(Show a, Show e) => Show (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

showsPrec :: Int -> Remote e a -> ShowS Source #

show :: Remote e a -> String Source #

showList :: [Remote e a] -> ShowS Source #

Generic (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Associated Types

type Rep (Remote e a) :: Type -> Type Source #

Methods

from :: Remote e a -> Rep (Remote e a) x Source #

to :: Rep (Remote e a) x -> Remote e a Source #

Semigroup a => Semigroup (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

(<>) :: Remote e a -> Remote e a -> Remote e a Source #

sconcat :: NonEmpty (Remote e a) -> Remote e a Source #

stimes :: Integral b => b -> Remote e a -> Remote e a Source #

Semigroup a => Monoid (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

mempty :: Remote e a Source #

mappend :: Remote e a -> Remote e a -> Remote e a Source #

mconcat :: [Remote e a] -> Remote e a Source #

(Arbitrary e, Arbitrary a) => Arbitrary (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

arbitrary :: Gen (Remote e a) Source #

shrink :: Remote e a -> [Remote e a] Source #

(NFData a, NFData e) => NFData (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

Methods

rnf :: Remote e a -> () Source #

(ToJSON a, ToJSON e) => ToJSON (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

(FromJSON e, FromJSON a) => FromJSON (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

type Rep (Remote e a) Source # 
Instance details

Defined in Shpadoinkle.Widgets.Types.Remote

type Rep (Remote e a) = D1 (MetaData "Remote" "Shpadoinkle.Widgets.Types.Remote" "Shpadoinkle-widgets-0.2.0.1-HaWUIlNGtuO41rdsllvehE" False) ((C1 (MetaCons "Success" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)) :+: C1 (MetaCons "Failure" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 e))) :+: (C1 (MetaCons "Loading" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "NotAsked" PrefixI False) (U1 :: Type -> Type)))