Modulestreamly-core-0.3.1Haskell2010
Streamly.Internal.Data.Array.Generic
Contents
Synopsis
- value chunksOf
- value create
- value createOf
- value createOfLast
- value createWith
- value dropAround
- value fold
- value foldl'
- value foldr
- value fromByteStr#
- value fromCString#
- value fromList
- value fromListN
- value fromPureStream
- value fromStream
- value fromStreamN
- value getIndex
- value getIndexUnsafe
- value getSliceUnsafe
- value length
- value nil
- value read
- value readRev
- value reader
- value streamFold
- value strip
- value toList
- value toParserK
- value unsafeFreeze
- value unsafeGetIndex
- value unsafeSliceOffLen
- value unsafeThaw
- value write
- value writeN
- data Array
- value parse
- value parsePos
- value parseBreak
- value parseBreakPos
- Packagestreamly-core-0.3.1
- Exports39
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceType.hs
Fold the whole input to a single array.
Caution! Do not use this on infinite streams.
Truncate the array at the beginning and end as long as the predicate holds true. Returns a slice of the original array.
Deprecated. Please use 'unsafePerformIO . fromCString#' instead
Lookup the element at the given index. Index starts from 0.
Deprecated. Please use unsafeGetIndex instead.
O(1) Lookup the element at the given index. Index starts from 0. Does not check the bounds.
Deprecated. Please use unsafeSliceOffLen instead.
Deprecated. Please use dropAround instead.
Truncate the array at the beginning and end as long as the predicate holds true. Returns a slice of the original array.
Convert a Parser to ParserK working on generic Array stream.
Pre-release
O(1) Lookup the element at the given index. Index starts from 0. Does not check the bounds.
Deprecated. Please use create instead.
Deprecated. Please use createOf instead.
Constructors
ArrayarrContents# :: MutableArray# RealWorld aThe internal contents of the array representing the entire array.
arrStart :: !IntThe starting index of this slice.
arrEnd :: !IntFirst invalid index of the array.
Instances4Eq, Ord, Read, Show
Eq a => Eq (Array a)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Array.Generic.TypeOrd a => Ord (Array a)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Array.Generic.TypeRead a => Read (Array a)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Array.Generic.TypeShow a => Show (Array a)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Array.Generic.Type
Parsing Stream of Arrays
Like parseBreak but includes stream position information in the error messages.