streamly icon indicating copy to clipboard operation
streamly copied to clipboard

`Stream.parse` not exposed to user

Open xave opened this issue 3 years ago • 2 comments

ISSUE Missing method yet examples still reference it.

BACKGROUND I have been using the 0.7.2 version of Streamly where the parse function was exposed in Streamly.Internal.Prelude. In the Streamly.Internal.Data.Parser module, there is a function sequence that has a note that it is not implemented. As such, I moved to 0.8, specifically 0.8.2 to see what might be new. In the 0.8.2 version, the examples still reference Stream.parse (formally recommended to be qualified S.parse), yet the source code in Streamly.Prelude does not include it and the Streamly.Internal.Prelude where Stream.parse used to reside is now missing.

xave avatar Mar 20 '22 22:03 xave

Parsers are not officially released yet. The parse operation was never exposed in released modules AFAIK. It may have been exposed an Internal module, and it is still there in Streamly.Internal.Data.Stream.IsStream internal module. You can use it from there.

harendra-kumar avatar Mar 21 '22 09:03 harendra-kumar

Thank you Harendra.

xave avatar Mar 21 '22 14:03 xave

This operation is slated to be released via Streamly.Data.Stream module in 0.9.0. Already present on master branch, to be released soon.

harendra-kumar avatar Oct 12 '22 11:10 harendra-kumar