git.iko.soy/typeable/pandoc
on master help sign in
Shared: remove withTempDir.
commit4ef0e13c474de94419a938852c40ddc152a35376 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 2 Mar 2019, 15:12 (8 years ago) parent4774cf5
1 file changed−17
src/Text/Pandoc/Shared.hs−17
src/Text/Pandoc/Shared.hs−17
@@ -87,8 +87,6 @@ module Text.Pandoc.Shared (
8787 defaultBlocksSeparator,
8888 -- * Safe read
8989 safeRead,
90− -- * Temp directory
91− withTempDir,
9290 -- * User data directory
9391 defaultUserDataDirs,
9492 -- * Version
@@ -119,7 +117,6 @@ import Paths_pandoc (version)
119117import System.Directory
120118import System.FilePath (isPathSeparator, splitDirectories)
121119import qualified System.FilePath.Posix as Posix
122−import System.IO.Temp
123120import Text.HTML.TagSoup (RenderOptions (..), Tag (..), renderOptions,
124121 renderTagsOptions)
125122import Text.Pandoc.Builder (Blocks, Inlines, ToMetaValue (..))
@@ -898,20 +895,6 @@ safeRead s = case reads s of
898895 | all isSpace x -> return d
899896 _ -> mzero
900897
901−--
902−-- Temp directory
903−--
904−
905−-- TODO remove in next major release; this is no longer
906−-- used in the code base.
907−withTempDir :: String -> (FilePath -> IO a) -> IO a
908−withTempDir =
909−#ifdef _WINDOWS
910− withTempDirectory "."
911−#else
912− withSystemTempDirectory
913−#endif
914−
915898--
916899-- User data directory
917900--