Modulestreamly-core-0.3.1Haskell2010
Streamly.Internal.Data.Array.Generic
- 1 type
- 38 values
- 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
4 declarationsLike parseBreak but includes stream position information in the error messages.