tqdC      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  Safe-Inferred Safe-InferredWe need to distinguish between  and , since there is an instance Sort Set but there cannot be an instance SortBy Set.qCreate a container with as many copies as possible of a given value. That is, for a container with fixed size n, the call repeat x will generate a container with n copies of x. It must hold: Kfmap f xs = zipWith (\x _ -> f x) xs xs = zipWith (\_ x -> f x) xs xs.Default implementation for  based on .T  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ(  !"#$%&'()*+,-.T%&ZYXW#$VU!"TS' RQPONMLKJIHG(FEDCBA@?>)*+,-=<;:98.765 432 10 /D    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ$ Safe-Inferred[\]^_`abcdefghijkl[\[\lkjihgfedcba`_^][\]^_`abcdefghijkl Safe-Inferredm#Make a list as long as another one \Check whether two lists with different element types have equal length. It is equivalent to length xs == length ys but more efficient.JCompare the length of two lists over different types. It is equivalent to !(compare (length xs) (length ys)) but more efficient.n the same as ($>)mnmnmnmn Safe-InferredoDWrap a container such that its Applicative instance is based on zip.rbAlways returns a rectangular list by clipping all dimensions to the shortest slice. Be aware that transpose [] == repeat [].opqrstopqropqtsropqrst  Safe-Inferred|BInsert an element into an ordered list while preserving the order.} The type }R can be used for many kinds of list-like structures with restrictions on the size. T [] a0 is a lazy list containing at least one element. T (T []) a1 is a lazy list containing at least two elements. T Vector a is a vector with at least one element. You may also use unboxed vectors but the first element will be stored in a box and you will not be able to use many functions from this module. T Maybe a- is a list that contains one or two elements.Maybe is isomorphic to Optional Empty. T Empty a- is a list that contains exactly one element. T (T Empty) a. is a list that contains exactly two elements.Optional (T Empty) a. is a list that contains zero or two elements.You can create a list type for every finite set of allowed list length by nesting Optional and NonEmpty constructors. If list length n is allowed, then place Optional at depth n#, if it is disallowed then place NonEmpty$. The maximum length is marked by Empty.#Force immediate generation of Cons.Implementation of   without the % constraint that is needed for  .Implementation of  without the % constraint that is needed for . Synonym for ~. For symmetry to . It holds: !foldl1Map f g = foldl1 f . fmap gbut  does not need a  instance.)Fold a non-empty list in a balanced way. BalancedP means that each element has approximately the same depth in the operator tree. Approximately the same depth means that the difference between maximum and minimum depth is at most 1. The accumulation operation must be associative and commutative in order to get the same result as  or foldr1.maximum is a total functionminimum is a total functionmaximumBy is a total functionminimumBy is a total functionmaximumKey is a total functionminimumKey is a total functionmaximumKey is a total functionminimumKey is a total function+sum does not need a zero for initialization.product does not need a one for initializationgeneric variants:  or better Semigroup.cycleDefault implementation for | based on z.MOnly advised for structures with efficient appending of single elements like Sequence!. Alternatively you may consider .If you nest too many non-empty lists then the efficient merge-sort (linear-logarithmic runtime) will degenerate to an inefficient insert-sort (quadratic runtime). Caution: $viewL (NonEmpty.Cons x []) = Nothing8 because the tail is empty, and thus cannot be NonEmpty!=This instance mainly exist to allow cascaded applications of .ouvwxyz{|}~     Euvwxyz{|}~duvwxyz{|}~      Safe-Inferred3uvwxyz{|}~3}~{|yzuvwx Safe-Inferred#Select tuples of list elements: choose "abc" == ['a'!:'b'!:empty,'a'!:'c'!:empty,'b'!:'c'!:empty]8This implementation is more efficient for Sequence than . Safe-Inferred !" !" !" Safe-InferredWe cannot have a reasonable instance Insert Set , since the instance Insert (NonEmpty Set)4 would preserve duplicate leading elements, whereas # does not. However, the instance Insert NonEmpty( is not the problem. A general type like :insertSet :: (Insert f, Ord a) => a -> f a -> NonEmpty f a,cannot work, since it can be instantiated to HinsertSet :: (Ord a) => a -> NonEmpty Set a -> NonEmpty (NonEmpty Set) aand this is obviously wrong: insertSet x (singleton x) has only one element, not two.$%& $%&  Safe-Inferred'()*+,'()*+,  Safe-Inferred-./0123456789:;<=-./0123456789:;<=> !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~       8 7 0 5 3 .  , " |3(0  0     r y       q s o p t v    z {z     z q r s t p u v    z {non-empty-0.2.1 Data.AppendData.NonEmpty.Class Data.EmptyData.NonEmpty.MatchData.Zip Data.NonEmptyData.NonEmpty.MixedData.NonEmpty.SetData.NonEmpty.Map Data.OptionalData.NonEmptyPrivate Applicative<*>pureMonad>>=returnData.Monoid.HTcycleData.NonEmptyTestTConsfstsnd$fTraversableT $fFoldableT $fFunctorT Arbitrary arbitraryshrinkShow showsPrecReversereverseSortBysortBySortsortIterateiterateRepeatrepeatZipzipWithAppendappend Singleton singletonViewViewRviewRViewLviewLSnocsnocconsEmptyempty snocDefault viewRDefaultzipWith3zipWith4zipzip3zip4 sortDefault $fArbitrary[] $fShowSet$fShow[] $fReverseSeq$fReverseMaybe $fReverse[] $fSortBySeq $fSortByMaybe $fSortBy[] $fSortSet $fSortSeq $fSortMaybe$fSort[] $fIterate[] $fRepeat[]$fZipSeq $fZipMaybe$fZip[] $fAppendSeq $fAppend[]$fSingletonSeq$fSingletonSet$fSingletonMaybe $fSingleton[] $fViewSeq $fViewSet $fViewMaybe$fView[] $fViewRSeq $fViewRSet $fViewRMaybe $fViewR[] $fViewLSeq $fViewLSet $fViewLMaybe $fViewL[] $fSnocSeq$fSnoc[] $fConsSeq$fCons[] $fEmptySeq $fEmptySet $fEmptyMaybe $fEmpty[] $fIterateT $fRepeatT $fSortByT$fSortT $fReverseT$fZipT$fEmptyT $fArbitraryT$fViewT$fViewRT$fViewLT$fShowT$fShowT0take replicatedecons transposeClip$fApplicativeTTailstails RemoveEach removeEachInsertByinsertByInsertinsertheadtail!:forceapplybindtoListflattenfetchmapHeadmapTailinitlastfoldl1 foldl1Map foldBalancedmaximumminimum maximumBy minimumBy maximumKey minimumKeysumproduct appendRight appendLeft insertDefaultinitsinitsRevscanlscanr mapAdjacentChoosechoosegroupBy segmentAfter segmentBeforefilterToInfixessplitAt sliceVertical $fChoose[] $fChooseT $fChooseT0membersizeminViewmaxViewfromList toAscListunion unionLeft unionRightelemskeyskeysSetlookupminViewWithKeymaxViewWithKeyNil fromEmpty fromNonEmpty?: _equalLength_compareLengthbaseGHC.BaseFunctor _maximumKey _minimumKeyTransposeInnertransposeStart zipHeadTailTransposeOuter transposeAuxsnocAlt attachKeyinsertByTraversabletailsTraversabletransposePrelude propTransposepropTransposePrelude$fTransposeInner[]$fTransposeOuter[] $fTailsSeq $fTailsMaybe$fTailsT $fTailsT0 $fTails[]$fRemoveEachMaybe $fRemoveEachT$fRemoveEachT0$fRemoveEach[] $fInsertBySeq$fInsertByMaybe $fInsertBy[] $fInsertByT $fInsertByT0 $fInsertSeq $fInsertMaybe $fInsert[] $fInsertT $fInsertT0 $fAppendT $fSingletonT$fSnocT$fConsT$fArbitraryAux $fArbitraryT0$fMonadTfilterToInfixesAltcontainers-0.5.5.1 Data.Set.BaseSet insertGen