aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-14 16:35:29 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-14 16:35:29 +0200
commitf8fef1ebb053c3e5a66c1a9a91f3e04940a6fdd6 (patch)
treeaf944fa6892406146548ee6ecd3c3412208129c5 /src/Text/Pandoc
parentf1407848708c9d76f0fa3a95e6af7ffc13e158d6 (diff)
downloadpandoc-f8fef1ebb053c3e5a66c1a9a91f3e04940a6fdd6.tar.gz
Class: remove stFontFiles in PureState, 'glob' searches stFiles.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Class.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Class.hs b/src/Text/Pandoc/Class.hs
index d8505e0b1..6906873d7 100644
--- a/src/Text/Pandoc/Class.hs
+++ b/src/Text/Pandoc/Class.hs
@@ -438,7 +438,6 @@ data PureState = PureState { stStdGen :: StdGen
, stFiles :: FileTree
, stUserDataDir :: FileTree
, stCabalDataDir :: FileTree
- , stFontFiles :: [FilePath]
}
instance Default PureState where
@@ -453,7 +452,6 @@ instance Default PureState where
, stFiles = mempty
, stUserDataDir = mempty
, stCabalDataDir = mempty
- , stFontFiles = []
}
@@ -550,8 +548,8 @@ instance PandocMonad PandocPure where
Nothing -> readDataFile Nothing fname
glob s = do
- fontFiles <- getsPureState stFontFiles
- return (filter (match (compile s)) fontFiles)
+ FileTree ftmap <- getsPureState stFiles
+ return $ filter (match (compile s)) $ M.keys ftmap
getModificationTime fp = do
fps <- getsPureState stFiles