Copyright | (c) Alec Theriault 2017-2018 |
---|---|
License | BSD-style |
Maintainer | alec.theriault@gmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Datatype wrapping non-empty lists.
Documentation
Instances
Functor NonEmpty Source # | |
Foldable NonEmpty Source # | |
Defined in Language.Rust.Parser.NonEmpty fold :: Monoid m => NonEmpty m -> m # foldMap :: Monoid m => (a -> m) -> NonEmpty a -> m # foldr :: (a -> b -> b) -> b -> NonEmpty a -> b # foldr' :: (a -> b -> b) -> b -> NonEmpty a -> b # foldl :: (b -> a -> b) -> b -> NonEmpty a -> b # foldl' :: (b -> a -> b) -> b -> NonEmpty a -> b # foldr1 :: (a -> a -> a) -> NonEmpty a -> a # foldl1 :: (a -> a -> a) -> NonEmpty a -> a # elem :: Eq a => a -> NonEmpty a -> Bool # maximum :: Ord a => NonEmpty a -> a # minimum :: Ord a => NonEmpty a -> a # | |
Traversable NonEmpty Source # | |
IsList (NonEmpty a) Source # | |
Eq a => Eq (NonEmpty a) Source # | |
Data a => Data (NonEmpty a) Source # | |
Defined in Language.Rust.Parser.NonEmpty gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NonEmpty a -> c (NonEmpty a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (NonEmpty a) # toConstr :: NonEmpty a -> Constr # dataTypeOf :: NonEmpty a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (NonEmpty a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (NonEmpty a)) # gmapT :: (forall b. Data b => b -> b) -> NonEmpty a -> NonEmpty a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NonEmpty a -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NonEmpty a -> r # gmapQ :: (forall d. Data d => d -> u) -> NonEmpty a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> NonEmpty a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> NonEmpty a -> m (NonEmpty a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NonEmpty a -> m (NonEmpty a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NonEmpty a -> m (NonEmpty a) # | |
Ord a => Ord (NonEmpty a) Source # | |
Defined in Language.Rust.Parser.NonEmpty | |
Show a => Show (NonEmpty a) Source # | |
Foldable (Reversed NonEmpty) Source # | |
Defined in Language.Rust.Parser.Reversed fold :: Monoid m => Reversed NonEmpty m -> m # foldMap :: Monoid m => (a -> m) -> Reversed NonEmpty a -> m # foldr :: (a -> b -> b) -> b -> Reversed NonEmpty a -> b # foldr' :: (a -> b -> b) -> b -> Reversed NonEmpty a -> b # foldl :: (b -> a -> b) -> b -> Reversed NonEmpty a -> b # foldl' :: (b -> a -> b) -> b -> Reversed NonEmpty a -> b # foldr1 :: (a -> a -> a) -> Reversed NonEmpty a -> a # foldl1 :: (a -> a -> a) -> Reversed NonEmpty a -> a # toList :: Reversed NonEmpty a -> [a] # null :: Reversed NonEmpty a -> Bool # length :: Reversed NonEmpty a -> Int # elem :: Eq a => a -> Reversed NonEmpty a -> Bool # maximum :: Ord a => Reversed NonEmpty a -> a # minimum :: Ord a => Reversed NonEmpty a -> a # | |
Semigroup (NonEmpty a) Source # | |
NFData a => NFData (NonEmpty a) Source # | |
Defined in Language.Rust.Parser.NonEmpty | |
Located a => Located (NonEmpty a) Source # | O(n) time complexity |
type Item (NonEmpty a) Source # | |
Defined in Language.Rust.Parser.NonEmpty |