Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Trace a b
- ppTrace :: (a -> String) -> (b -> String) -> Trace a b -> String
- toList :: Trace a b -> [b]
- fromList :: a -> [b] -> Trace a b
- head :: Trace a b -> b
- tail :: Trace a b -> Trace a b
- filter :: (b -> Bool) -> Trace a b -> Trace a b
- length :: Trace a b -> Int
- take :: Int -> Trace a b -> Trace (Maybe a) b
- takeWhile :: (b -> Bool) -> Trace a b -> Trace (Maybe a) b
- drop :: Int -> Trace a b -> Trace a b
- dropWhile :: (b -> Bool) -> Trace a b -> Trace a b
Documentation
A cons
list with polymorphic nil
.
Usually used with a
being a non empty sum type.
Instances
Bifoldable Trace Source # | |
Bifunctor Trace Source # | |
Bitraversable Trace Source # | |
Defined in Data.List.Trace bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Trace a b -> f (Trace c d) # | |
Monoid a => MonadFail (Trace a) Source # | |
Defined in Data.List.Trace | |
Monoid a => MonadFix (Trace a) Source # | |
Defined in Data.List.Trace | |
Eq a => Eq1 (Trace a) Source # | |
Ord a => Ord1 (Trace a) Source # | |
Defined in Data.List.Trace | |
Show a => Show1 (Trace a) Source # | |
Monoid a => Alternative (Trace a) Source # | |
Monoid a => Applicative (Trace a) Source # | |
Functor (Trace a) Source # | |
Monoid a => Monad (Trace a) Source # | |
Monoid a => MonadPlus (Trace a) Source # | |
Monoid a => Monoid (Trace a b) Source # | |
Semigroup a => Semigroup (Trace a b) Source # | |
(Show b, Show a) => Show (Trace a b) Source # | |
(Eq b, Eq a) => Eq (Trace a b) Source # | |
(Ord b, Ord a) => Ord (Trace a b) Source # | |
Defined in Data.List.Trace |
take :: Int -> Trace a b -> Trace (Maybe a) b Source #
Take the first n elements of a Trace, converting each to ().