Extract the first element of the stream.
Modulelinear-base-0.8.1
Data.List.NonEmpty.Linear
- 1 type
- 43 values
- Packagelinear-base-0.8.1
- Exports44
- LicenceMIT
- SourceNonEmpty.hs
Extract everything except the last element of the stream.
Extract the last element of the stream.
Sort a stream.
Extract the possibly-empty tail of the stream.
Non-empty (and non-strict) list type.
Constructors
a :| [a]infixr 5
Instances46Monad, MonadFix, Applicative, Foldable, MonadZip, Foldable1, …
Monad NonEmptyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.NonEmpty · orphanFunctor NonEmptyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.NonEmpty · orphanMonadFix NonEmptyDefined in ghc-internal-9.1401.0 · GHC.Internal.Control.Monad.FixApplicative NonEmptyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.NonEmpty · orphanFoldable NonEmptyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.FoldableTraversable NonEmptyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.TraversableMonadZip NonEmptyDefined in ghc-internal-9.1401.0 · GHC.Internal.Control.Monad.ZipFoldable1 NonEmptyDefined in base-4.22.0.0 · Data.Foldable1Eq1 NonEmptyDefined in base-4.22.0.0 · Data.Functor.ClassesOrd1 NonEmptyDefined in base-4.22.0.0 · Data.Functor.ClassesRead1 NonEmptyDefined in base-4.22.0.0 · Data.Functor.ClassesShow1 NonEmptyDefined in base-4.22.0.0 · Data.Functor.ClassesNFData1 NonEmptyDefined in deepseq-1.5.1.0 · Control.DeepSeqArbitrary1 NonEmptyDefined in QuickCheck-2.19.0.0 · Test.QuickCheck.ArbitraryHashable1 NonEmptyDefined in hashable-1.5.1.0 · Data.Hashable.ClassFunctor NonEmptyDefined in linear-base-0.8.1 · Data.Functor.Linear.Internal.FunctorTraversable NonEmptyDefined in linear-base-0.8.1 · Data.Functor.Linear.Internal.TraversableGeneric1 NonEmptyDefined in ghc-internal-9.1401.0 · GHC.Internal.GenericsGeneric1 NonEmptyDefined in linear-generics-0.2.3 · Generics.Linear.Instances.Base · orphanLift a => Lift (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.TH.LiftIsList (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.IsListEq a => Eq (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.BaseData a => Data (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.DataOrd a => Ord (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.BaseRead a => Read (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.ReadShow a => Show (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.ShowGeneric (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.GenericsSemigroup (NonEmpty a)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.NonEmpty · orphanNFData a => NFData (NonEmpty a)Defined in deepseq-1.5.1.0 · Control.DeepSeqArbitrary a => Arbitrary (NonEmpty a)Defined in QuickCheck-2.19.0.0 · Test.QuickCheck.ArbitraryCoArbitrary a => CoArbitrary (NonEmpty a)Defined in QuickCheck-2.19.0.0 · Test.QuickCheck.ArbitraryFunction a => Function (NonEmpty a)Defined in QuickCheck-2.19.0.0 · Test.QuickCheck.FunctionBinary a => Binary (NonEmpty a)Defined in binary-0.8.9.3 · Data.Binary.ClassHashable a => Hashable (NonEmpty a)Defined in hashable-1.5.1.0 · Data.Hashable.ClassGeneric (NonEmpty a)Defined in linear-generics-0.2.3 · Generics.Linear.Instances.Base · orphanConsumable a => Consumable (NonEmpty a)Defined in linear-base-0.8.1 · Data.Unrestricted.Linear.Internal.ConsumableDupable a => Dupable (NonEmpty a)Defined in linear-base-0.8.1 · Data.Unrestricted.Linear.Internal.DupableMovable a => Movable (NonEmpty a)Defined in linear-base-0.8.1 · Data.Unrestricted.Linear.Internal.MovableSemigroup (NonEmpty a)Defined in linear-base-0.8.1 · Data.List.Linear · orphan(Consumable a, Eq a) => Eq (NonEmpty a)Defined in linear-base-0.8.1 · Data.Ord.Linear.Internal.Eq(Consumable a, Ord a) => Ord (NonEmpty a)Defined in linear-base-0.8.1 · Data.Ord.Linear.Internal.Ordtype Rep (NonEmpty a) = D1 ('MetaDataDefined in ghc-internal-9.1401.0 · GHC.Internal.Generics"NonEmpty"
"GHC.Internal.Base"
"ghc-internal"
'False) (C1 ('MetaCons":|"
('InfixI 'RightAssociative5
) 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a])))type Rep1 NonEmpty = D1 ('MetaDataDefined in ghc-internal-9.1401.0 · GHC.Internal.Generics"NonEmpty"
"GHC.Internal.Base"
"ghc-internal"
'False) (C1 ('MetaCons":|"
('InfixI 'RightAssociative5
) 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) Par1 :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec1 [])))type Item (NonEmpty a) = aDefined in ghc-internal-9.1401.0 · GHC.Internal.IsListtype Rep (NonEmpty a) = D1 ('MetaDataDefined in linear-generics-0.2.3 · Generics.Linear.Instances.Base · orphan"NonEmpty"
"GHC.Internal.Base"
"ghc-internal"
'False) (C1 ('MetaCons":|"
('InfixI 'RightAssociative5
) 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a])))type Rep1 NonEmpty = D1 ('MetaDataDefined in linear-generics-0.2.3 · Generics.Linear.Instances.Base · orphan"NonEmpty"
"GHC.Internal.Base"
"ghc-internal"
'False) (C1 ('MetaCons":|"
('InfixI 'RightAssociative5
) 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) Par1 :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Par1 :.: [])))