Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History
 
 

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Module Documentation

Module Control.Monad.ListT

ListT

data ListT f a

ZipListT

newtype ZipListT f a

nil

nil :: forall f a. (Applicative f) => ListT f a

cons'

cons' :: forall f a. (Applicative f) => Lazy a -> Lazy (ListT f a) -> ListT f a

prepend'

prepend' :: forall f a. (Applicative f) => a -> Lazy (ListT f a) -> ListT f a

prepend

prepend :: forall f a. (Applicative f) => a -> ListT f a -> ListT f a

singleton

singleton :: forall f a. (Applicative f) => a -> ListT f a

fromEffect

fromEffect :: forall f a. (Applicative f) => f a -> ListT f a

wrapEffect

wrapEffect :: forall f a. (Monad f) => f (ListT f a) -> ListT f a

wrapLazy

wrapLazy :: forall f a. (Monad f) => Lazy (ListT f a) -> ListT f a

unfold

unfold :: forall f a z. (Monad f) => (z -> f (Maybe (Tuple z a))) -> z -> ListT f a

iterate

iterate :: forall f a. (Monad f) => (a -> a) -> a -> ListT f a

repeat

repeat :: forall f a. (Monad f) => a -> ListT f a

fromArray

fromArray :: forall f a. (Monad f) => [a] -> ListT f a

toArray

toArray :: forall f a. (Monad f) => ListT f a -> f [a]

take

take :: forall f a. (Applicative f) => Number -> ListT f a -> ListT f a

takeWhile

takeWhile :: forall f a. (Applicative f) => (a -> Boolean) -> ListT f a -> ListT f a

drop

drop :: forall f a. (Applicative f) => Number -> ListT f a -> ListT f a

dropWhile

dropWhile :: forall f a. (Applicative f) => (a -> Boolean) -> ListT f a -> ListT f a

filter

filter :: forall f a. (Functor f) => (a -> Boolean) -> ListT f a -> ListT f a

mapMaybe

mapMaybe :: forall f a b. (Functor f) => (a -> Maybe b) -> ListT f a -> ListT f b

catMaybes

catMaybes :: forall f a. (Functor f) => ListT f (Maybe a) -> ListT f a

uncons

uncons :: forall f a. (Monad f) => ListT f a -> f (Maybe (Tuple a (ListT f a)))

head

head :: forall f a. (Monad f) => ListT f a -> f (Maybe a)

tail

tail :: forall f a. (Monad f) => ListT f a -> f (Maybe (ListT f a))

foldl'

foldl' :: forall f a b. (Monad f) => (b -> a -> f b) -> b -> ListT f a -> f b

foldl

foldl :: forall f a b. (Monad f) => (b -> a -> b) -> b -> ListT f a -> f b

scanl

scanl :: forall f a b. (Monad f) => (b -> a -> b) -> b -> ListT f a -> ListT f b

zipWith'

zipWith' :: forall f a b c. (Monad f) => (a -> b -> f c) -> ListT f a -> ListT f b -> ListT f c

zipWith

zipWith :: forall f a b c. (Monad f) => (a -> b -> c) -> ListT f a -> ListT f b -> ListT f c

zipList

zipList :: forall f a. ListT f a -> ZipListT f a

semigroupListT

instance semigroupListT :: (Applicative f) => Semigroup (ListT f a)

semigroupZipListT

instance semigroupZipListT :: (Applicative f) => Semigroup (ZipListT f a)

monoidListT

instance monoidListT :: (Applicative f) => Monoid (ListT f a)

monoidZipListT

instance monoidZipListT :: (Applicative f) => Monoid (ZipListT f a)

functorListT

instance functorListT :: (Functor f) => Functor (ListT f)

functorZipListT

instance functorZipListT :: (Functor f) => Functor (ZipListT f)

unfoldableListT

instance unfoldableListT :: (Monad f) => Unfoldable (ListT f)

applyListT

instance applyListT :: (Monad f) => Apply (ListT f)

applyZipListT

instance applyZipListT :: (Monad f) => Apply (ZipListT f)

applicativeListT

instance applicativeListT :: (Monad f) => Applicative (ListT f)

applicativeZipListT

instance applicativeZipListT :: (Monad f) => Applicative (ZipListT f)

bindListT

instance bindListT :: (Monad f) => Bind (ListT f)

monadListT

instance monadListT :: (Monad f) => Monad (ListT f)

monadTransListT

instance monadTransListT :: MonadTrans ListT

altListT

instance altListT :: (Applicative f) => Alt (ListT f)

altZipListT

instance altZipListT :: (Applicative f) => Alt (ZipListT f)

plusListT

instance plusListT :: (Monad f) => Plus (ListT f)

plusZipListT

instance plusZipListT :: (Monad f) => Plus (ZipListT f)

alternativeListT

instance alternativeListT :: (Monad f) => Alternative (ListT f)

alternativeZipListT

instance alternativeZipListT :: (Monad f) => Alternative (ZipListT f)

monadPlusListT

instance monadPlusListT :: (Monad f) => MonadPlus (ListT f)

Module Data.List

List

data List a
  = Nil 
  | Cons a (List a)

showList

instance showList :: (Show a) => Show (List a)

eqList

instance eqList :: (Eq a) => Eq (List a)

ordList

instance ordList :: (Ord a) => Ord (List a)

semigroupList

instance semigroupList :: Semigroup (List a)

monoidList

instance monoidList :: Monoid (List a)

functorList

instance functorList :: Functor List

foldableList

instance foldableList :: Foldable List

unfoldableList

instance unfoldableList :: Unfoldable List

traversableList

instance traversableList :: Traversable List

applyList

instance applyList :: Apply List

applicativeList

instance applicativeList :: Applicative List

bindList

instance bindList :: Bind List

monadList

instance monadList :: Monad List

altList

instance altList :: Alt List

plusList

instance plusList :: Plus List

alternativeList

instance alternativeList :: Alternative List

monadPlusList

instance monadPlusList :: MonadPlus List

fromArray

fromArray :: forall a. [a] -> List a

toArray

toArray :: forall a. List a -> [a]

(!)

(!) :: forall a. List a -> Number -> Maybe a

drop

drop :: forall a. Number -> List a -> List a

take

take :: forall a. Number -> List a -> List a

length

length :: forall a. List a -> Number

filter

filter :: forall a. (a -> Boolean) -> List a -> List a

mapMaybe

mapMaybe :: forall a b. (a -> Maybe b) -> List a -> List b

catMaybes

catMaybes :: forall a. List (Maybe a) -> List a

head

head :: forall a. List a -> Maybe a

tail

tail :: forall a. List a -> Maybe (List a)

uncons

uncons :: forall a. List a -> Maybe (Tuple a (List a))

last

last :: forall a. List a -> Maybe a

init

init :: forall a. List a -> Maybe (List a)

zipWith

zipWith :: forall a b c. (a -> b -> c) -> List a -> List b -> List c

null

null :: forall a. List a -> Boolean

span

span :: forall a. (a -> Boolean) -> List a -> Tuple (List a) (List a)

group

group :: forall a. (Eq a) => List a -> List (List a)

groupBy

groupBy :: forall a. (a -> a -> Boolean) -> List a -> List (List a)

(\\)

(\\) :: forall a. (Eq a) => List a -> List a -> List a

insert

insert :: forall a. (Ord a) => a -> List a -> List a

insertBy

insertBy :: forall a. (a -> a -> Ordering) -> a -> List a -> List a

insertAt

insertAt :: forall a. Number -> a -> List a -> Maybe (List a)

delete

delete :: forall a. (Eq a) => a -> List a -> List a

deleteBy

deleteBy :: forall a. (a -> a -> Boolean) -> a -> List a -> List a

deleteAt

deleteAt :: forall a. Number -> List a -> Maybe (List a)

alterAt

alterAt :: forall a. Number -> (a -> Maybe a) -> List a -> Maybe (List a)

reverse

reverse :: forall a. List a -> List a

nub

nub :: forall a. (Eq a) => List a -> List a

nubBy

nubBy :: forall a. (a -> a -> Boolean) -> List a -> List a

intersect

intersect :: forall a. (Eq a) => List a -> List a -> List a

intersectBy

intersectBy :: forall a. (a -> a -> Boolean) -> List a -> List a -> List a

union

union :: forall a. (Eq a) => List a -> List a -> List a

unionBy

unionBy :: forall a. (a -> a -> Boolean) -> List a -> List a -> List a

Module Data.List.Lazy

List

type List = L.ListT Lazy

LazyList

newtype LazyList a
  = LazyList (List a)

unLazyList

unLazyList :: forall a. LazyList a -> List a

foldableLazyList

instance foldableLazyList :: Foldable LazyList

Module Data.List.Unsafe

head

head :: forall a. List a -> a

tail

tail :: forall a. List a -> List a

last

last :: forall a. List a -> a

init

init :: forall a. List a -> List a

Module Test.Control.Monad.ListT

arbitraryListT

instance arbitraryListT :: (Monad f, Arbitrary a) => Arbitrary (ListT f a)

Module Test.Data.List

arbitraryList

instance arbitraryList :: (Arbitrary a) => Arbitrary (List a)