remove unused function
This commit is contained in:
parent
d424f43116
commit
a38b724bfa
1 changed files with 0 additions and 9 deletions
|
@ -11,7 +11,6 @@
|
||||||
module Utility.FileSystemEncoding (
|
module Utility.FileSystemEncoding (
|
||||||
useFileSystemEncoding,
|
useFileSystemEncoding,
|
||||||
fileEncoding,
|
fileEncoding,
|
||||||
withFilePath,
|
|
||||||
RawFilePath,
|
RawFilePath,
|
||||||
fromRawFilePath,
|
fromRawFilePath,
|
||||||
toRawFilePath,
|
toRawFilePath,
|
||||||
|
@ -81,14 +80,6 @@ fileEncoding h = hSetEncoding h =<< Encoding.getFileSystemEncoding
|
||||||
fileEncoding h = hSetEncoding h Encoding.utf8
|
fileEncoding h = hSetEncoding h Encoding.utf8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{- Marshal a Haskell FilePath into a NUL terminated C string using temporary
|
|
||||||
- storage. The FilePath is encoded using the filesystem encoding,
|
|
||||||
- reversing the decoding that should have been done when the FilePath
|
|
||||||
- was obtained. -}
|
|
||||||
withFilePath :: FilePath -> (CString -> IO a) -> IO a
|
|
||||||
withFilePath fp f = Encoding.getFileSystemEncoding
|
|
||||||
>>= \enc -> GHC.withCString enc fp f
|
|
||||||
|
|
||||||
{- Encodes a FilePath into a String, applying the filesystem encoding.
|
{- Encodes a FilePath into a String, applying the filesystem encoding.
|
||||||
-
|
-
|
||||||
- There are very few things it makes sense to do with such an encoded
|
- There are very few things it makes sense to do with such an encoded
|
||||||
|
|
Loading…
Add table
Reference in a new issue