Skip to content

Add more bytestring like functions#202

Closed
hasufell wants to merge 5 commits intomasterfrom
bytestring-functions
Closed

Add more bytestring like functions#202
hasufell wants to merge 5 commits intomasterfrom
bytestring-functions

Conversation

@hasufell
Copy link
Copy Markdown
Member

@hasufell hasufell commented Oct 14, 2023

This introduce bytestring-like functions (substrings, predicates, searching, etc.) to System.OsString, System.OsString.Windows and System.OsString.Posix.

Relevant for pcapriotti/optparse-applicative#65


Functions added:

  • snoc
  • cons
  • last
  • tail
  • uncons
  • head
  • init
  • unsnoc
  • null
  • length
  • map
  • reverse
  • intercalate
  • foldl
  • foldl'
  • foldl1
  • foldl1'
  • foldr
  • foldr'
  • foldr1
  • foldr1'
  • all
  • any
  • concat
  • replicate
  • unfoldr
  • unfoldrN
  • take
  • takeEnd
  • takeWhileEnd
  • takeWhile
  • drop
  • dropEnd
  • dropWhileEnd
  • dropWhile
  • break
  • breakEnd
  • span
  • spanEnd
  • splitAt
  • split
  • splitWith
  • stripSuffix
  • stripPrefix
  • isInfixOf
  • isPrefixOf
  • isSuffixOf
  • breakSubstring
  • elem
  • find
  • filter
  • partition
  • index
  • indexMaybe
  • (!?)
  • elemIndex
  • elemIndices
  • count
  • findIndex
  • findIndices

@hasufell hasufell marked this pull request as draft October 14, 2023 11:44
@hasufell hasufell force-pushed the bytestring-functions branch from 3be088c to 399f127 Compare October 15, 2023 07:49
@hasufell hasufell marked this pull request as ready for review October 15, 2023 07:50
@hasufell hasufell force-pushed the bytestring-functions branch from 399f127 to 1129f72 Compare October 15, 2023 08:01
Comment thread System/OsString/Common.hs Outdated
@hasufell hasufell force-pushed the bytestring-functions branch 2 times, most recently from b0e7018 to 0b6d702 Compare October 16, 2023 10:27
Comment thread System/OsString.hs Outdated
Comment thread System/OsString/Common.hs Outdated
Comment thread System/OsString/Common.hs Outdated
Comment thread System/OsString/Common.hs Outdated
@hasufell hasufell requested a review from clyring October 16, 2023 16:40
Comment thread System/OsString/Internal.hs Outdated
Comment thread System/OsString/Common.hs Outdated
Comment thread System/OsString/Common.hs Outdated
@hasufell hasufell requested review from Bodigrim and clyring October 19, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants