ansi-pretty-0.1.2.2: AnsiPretty for ansi-wl-pprint

LicenseBSD3
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellSafe
LanguageHaskell2010

Data.List.CommonPrefix

Description

 
Synopsis

Documentation

newtype CommonPrefix a Source #

Longest common prefix of lists.

Constructors

CommonPrefix [a] 
Instances
Functor CommonPrefix Source # 
Instance details

Defined in Data.List.CommonPrefix

Methods

fmap :: (a -> b) -> CommonPrefix a -> CommonPrefix b #

(<$) :: a -> CommonPrefix b -> CommonPrefix a #

Foldable CommonPrefix Source # 
Instance details

Defined in Data.List.CommonPrefix

Methods

fold :: Monoid m => CommonPrefix m -> m #

foldMap :: Monoid m => (a -> m) -> CommonPrefix a -> m #

foldr :: (a -> b -> b) -> b -> CommonPrefix a -> b #

foldr' :: (a -> b -> b) -> b -> CommonPrefix a -> b #

foldl :: (b -> a -> b) -> b -> CommonPrefix a -> b #

foldl' :: (b -> a -> b) -> b -> CommonPrefix a -> b #

foldr1 :: (a -> a -> a) -> CommonPrefix a -> a #

foldl1 :: (a -> a -> a) -> CommonPrefix a -> a #

toList :: CommonPrefix a -> [a] #

null :: CommonPrefix a -> Bool #

length :: CommonPrefix a -> Int #

elem :: Eq a => a -> CommonPrefix a -> Bool #

maximum :: Ord a => CommonPrefix a -> a #

minimum :: Ord a => CommonPrefix a -> a #

sum :: Num a => CommonPrefix a -> a #

product :: Num a => CommonPrefix a -> a #

Traversable CommonPrefix Source # 
Instance details

Defined in Data.List.CommonPrefix

Methods

traverse :: Applicative f => (a -> f b) -> CommonPrefix a -> f (CommonPrefix b) #

sequenceA :: Applicative f => CommonPrefix (f a) -> f (CommonPrefix a) #

mapM :: Monad m => (a -> m b) -> CommonPrefix a -> m (CommonPrefix b) #

sequence :: Monad m => CommonPrefix (m a) -> m (CommonPrefix a) #

Eq a => Eq (CommonPrefix a) Source # 
Instance details

Defined in Data.List.CommonPrefix

Data a => Data (CommonPrefix a) Source # 
Instance details

Defined in Data.List.CommonPrefix

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CommonPrefix a -> c (CommonPrefix a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CommonPrefix a) #

toConstr :: CommonPrefix a -> Constr #

dataTypeOf :: CommonPrefix a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (CommonPrefix a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (CommonPrefix a)) #

gmapT :: (forall b. Data b => b -> b) -> CommonPrefix a -> CommonPrefix a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CommonPrefix a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CommonPrefix a -> r #

gmapQ :: (forall d. Data d => d -> u) -> CommonPrefix a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CommonPrefix a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CommonPrefix a -> m (CommonPrefix a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CommonPrefix a -> m (CommonPrefix a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CommonPrefix a -> m (CommonPrefix a) #

Ord a => Ord (CommonPrefix a) Source # 
Instance details

Defined in Data.List.CommonPrefix

Read a => Read (CommonPrefix a) Source # 
Instance details

Defined in Data.List.CommonPrefix

Show a => Show (CommonPrefix a) Source # 
Instance details

Defined in Data.List.CommonPrefix

Generic (CommonPrefix a) Source # 
Instance details

Defined in Data.List.CommonPrefix

Associated Types

type Rep (CommonPrefix a) :: Type -> Type #

Methods

from :: CommonPrefix a -> Rep (CommonPrefix a) x #

to :: Rep (CommonPrefix a) x -> CommonPrefix a #

Eq a => Semigroup (CommonPrefix a) Source # 
Instance details

Defined in Data.List.CommonPrefix

AnsiPretty a => AnsiPretty (CommonPrefix a) Source # 
Instance details

Defined in Text.PrettyPrint.ANSI.Leijen.AnsiPretty

type Rep (CommonPrefix a) Source # 
Instance details

Defined in Data.List.CommonPrefix

type Rep (CommonPrefix a) = D1 (MetaData "CommonPrefix" "Data.List.CommonPrefix" "ansi-pretty-0.1.2.2-9d6byPWp7eCIPyg8VH69RI" True) (C1 (MetaCons "CommonPrefix" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [a])))