Skip to content

Commit

Permalink
Add more bytestring like functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Oct 14, 2023
1 parent 9721aa6 commit 3be088c
Show file tree
Hide file tree
Showing 3 changed files with 534 additions and 0 deletions.
65 changes: 65 additions & 0 deletions System/OsString.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module System.OsString
, encodeWith
, encodeFS
, osstr
, empty
, singleton
, pack

-- * OsString deconstruction
Expand All @@ -40,6 +42,40 @@ module System.OsString

-- * Word deconstruction
, toChar

-- * Basic interface
, snoc
, cons
, last
, tail
, uncons
, head
, unsnoc
, null
, length
, map
, reverse
, intercalate

-- * Reducing OsStrings (folds)
, foldl
, foldl'
, foldl1
, foldl1'
, foldr
, foldr'
, foldr1
, foldr1'

-- * Special folds
, all
, any
, concat

-- * Generating and unfolding OsStrings
, replicate
, unfoldr
, unfoldrN
)
where

Expand All @@ -51,10 +87,39 @@ import System.OsString.Internal
, encodeFS
, osstr
, pack
, empty
, singleton
, decodeUtf
, decodeWith
, decodeFS
, unpack
, snoc
, cons
, last
, tail
, uncons
, head
, unsnoc
, null
, length
, map
, reverse
, intercalate
, foldl
, foldl'
, foldl1
, foldl1'
, foldr
, foldr'
, foldr1
, foldr1'
, all
, any
, concat
, replicate
, unfoldr
, unfoldrN
)
import System.OsString.Internal.Types
( OsString, OsChar )
import Prelude hiding (last, tail, head, init, null, length, map, reverse, foldl, foldr, foldl1, foldr1, all, any, concat, replicate, take, takeWhile, drop, dropWhile, break, span, splitAt)
Loading

0 comments on commit 3be088c

Please sign in to comment.