Module
ApplicativePhases
- Package
- purescript-applicative-phases
- Repository
- artemisSystem/purescript-applicative-phases
#later Source
later :: forall @f @a. Applicative f => Phases f a -> Phases f a
Delay all of a list's computations by one phase.
#phase Source
phase :: forall @f @a. Applicative f => Int -> f a -> Phases f a
Insert a computation at the given index/"phase". The first phase is 0, and providing a number lower than 0 also inserts at phase 0.
#foldPhases Source
foldPhases :: forall @f. Applicative f => (Phases f) ~> f
Fold a list of computations into a single computation.
#index Source
index :: forall @f @a. Applicative f => Int -> Phases f a -> f Unit
Get the computation at a certain index, returning pure unit
if out of
bounds.
#head Source
head :: forall @f @a. Applicative f => Phases f a -> f Unit
Get the first computation, returning pure unit
if there isn't one.
#tail Source
tail :: forall @f @a. Applicative f => Phases f a -> Phases f Unit
Get all the computations except the first, returning an empty list if there are none.