Skip to content

Commit

Permalink
Fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
rnjtranjan committed Jul 12, 2023
1 parent 26fcc2f commit 528ba6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions core/src/Streamly/Internal/Unicode/Stream.hs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ encodeLatin1Lax = encodeLatin1
-- extract the significant bits from each byte of the sequence and combine them
-- to form the complete code point value. The specific bit manipulations will
-- differ based on the number of bytes used.
-- Int helps in cheaper conversion from Int to Char.
type CodePoint = Int

-- | DecodeState refers to the number of bytes remaining to complete the current
Expand Down Expand Up @@ -429,15 +428,15 @@ decodeUtf8EitherD :: Monad m
decodeUtf8EitherD = resumeDecodeUtf8EitherD 0 0

-- |
--
-- Initial DecodeState and CodePoint is 0.
-- /Pre-release/
{-# INLINE decodeUtf8Either #-}
decodeUtf8Either :: Monad m
=> Stream m Word8 -> Stream m (Either DecodeError Char)
decodeUtf8Either = decodeUtf8EitherD

-- |
--
-- Initial DecodeState and CodePoint is 0.
-- /Pre-release/
{-# INLINE resumeDecodeUtf8Either #-}
resumeDecodeUtf8Either
Expand Down
1 change: 0 additions & 1 deletion core/src/Streamly/Unicode/Stream.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ module Streamly.Unicode.Stream
, decodeUtf8
, decodeUtf8'
, decodeUtf8Chunks
, decodeUtf8Either
, resumeDecodeUtf8Either

-- * Elimination (Encoding)
Expand Down

0 comments on commit 528ba6e

Please sign in to comment.