Permalink
Browse files

Export withTempDir in Network.Gitit.Interface.

  • Loading branch information...
1 parent b4216c6 commit 6ee2aa4d4e874de7e9dd405842f45425e5bec818 @jgm committed Jun 25, 2009
Showing with 6 additions and 4 deletions.
  1. +4 −2 Network/Gitit/Interface.hs
  2. +2 −2 Network/Gitit/Util.hs
@@ -74,8 +74,8 @@ to create 'PageTransform' plugins from a transformation of any
of the basic types used by Pandoc (for example, @Inline@, @Block@,
@[Inline]@, even @String@). Here is a simple (if silly) example:
-> -- DeprofanizerPlugin.hs
-> module DeprofanizerPlugin (plugin) where
+> -- Deprofanizer.hs
+> module Deprofanizer (plugin) where
>
> -- This plugin replaces profane words with "XXXXX".
>
@@ -119,12 +119,14 @@ module Network.Gitit.Interface ( Plugin(..)
, inlinesToURL
, inlinesToString
, liftIO
+ , withTempDir
)
where
import Text.Pandoc.Definition
import Data.Data
import Network.Gitit.Types
import Network.Gitit.ContentTransformer
+import Network.Gitit.Util (withTempDir)
import Control.Monad.Reader (ask)
import Control.Monad (liftM)
import Control.Monad.Trans (liftIO)
View
@@ -17,8 +17,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-}
module Network.Gitit.Util ( withTempDir
- , orIfNull
- )
+ , orIfNull
+ )
where
import System.Directory (getTemporaryDirectory, createDirectory, removeDirectoryRecursive)
import Control.Exception (bracket)

0 comments on commit 6ee2aa4

Please sign in to comment.