within-0.0.1.0: A path within another path.

Safe HaskellNone
LanguageHaskell2010

Within

Documentation

newtype Within a t Source #

Constructors

Within (Path a Dir, Path Rel t) 
Instances
Eq (Within a t) Source # 
Instance details

Defined in Within

Methods

(==) :: Within a t -> Within a t -> Bool #

(/=) :: Within a t -> Within a t -> Bool #

Show (Within a t) Source # 
Instance details

Defined in Within

Methods

showsPrec :: Int -> Within a t -> ShowS #

show :: Within a t -> String #

showList :: [Within a t] -> ShowS #

Generic (Within a t) Source # 
Instance details

Defined in Within

Associated Types

type Rep (Within a t) :: Type -> Type #

Methods

from :: Within a t -> Rep (Within a t) x #

to :: Rep (Within a t) x -> Within a t #

type Rep (Within a t) Source # 
Instance details

Defined in Within

type Rep (Within a t) = D1 (MetaData "Within" "Within" "within-0.0.1.0-2T35ZMm8rNdKgwt9UZCB9x" True) (C1 (MetaCons "Within" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Path a Dir, Path Rel t))))

fromWithin :: Within a t -> Path a t Source #

toWithin :: Path a Dir -> Path Rel t -> Within a t Source #

within :: Path Rel t -> Path a Dir -> Within a t Source #

asWithin :: MonadThrow m => Path a t -> Path a Dir -> m (Within a t) Source #

mapWithin :: (Path Rel s -> Path Rel t) -> Within a s -> Within a t Source #

mapWithinT :: MonadThrow m => (Path Rel s -> m (Path Rel t)) -> Within a s -> m (Within a t) Source #

moveWithin :: (Path a Dir -> Path b Dir) -> Within a t -> Within b t Source #

moveWithinT :: MonadThrow m => (Path a Dir -> m (Path b Dir)) -> Within a t -> m (Within b t) Source #

blinkWithin :: Path b Dir -> Within a t -> Within b t Source #

moveAndMapT :: MonadThrow m => (Path a Dir -> m (Path b Dir)) -> (Path Rel s -> m (Path Rel t)) -> Within a s -> m (Within b t) Source #

blinkAndMapT :: MonadThrow m => Path b Dir -> (Path Rel s -> m (Path Rel t)) -> Within a s -> m (Within b t) Source #