Skip to content

Commit

Permalink
Improve 'fromString' haddocks
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Jun 29, 2024
1 parent 0228e24 commit 06a9edc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions System/OsString/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,14 @@ encodeLE = fmap PosixString . encodeWithBasePosix'
#endif

#ifdef WINDOWS
-- | Like 'encodeFS', but not in IO.
-- | Like 'encodeLE but not in IO.
--
-- 'encodeFS' was designed to have a symmetric type signature
-- 'encodeLE' was designed to have a symmetric type signature
-- on unix and windows, but morally the function has no IO effects on windows,
-- so we provide this variant without breaking existing API.
--
-- On windows, 'encodeLE' is equivalent to 'encodeFS'.
--
-- This function does not exist on unix.
--
-- @since 2.0.6
Expand Down

0 comments on commit 06a9edc

Please sign in to comment.