aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Class.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Class.hs')
-rw-r--r--src/Text/Pandoc/Class.hs16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/Text/Pandoc/Class.hs b/src/Text/Pandoc/Class.hs
index cd71448fe..34b04b266 100644
--- a/src/Text/Pandoc/Class.hs
+++ b/src/Text/Pandoc/Class.hs
@@ -315,18 +315,14 @@ readFileFromDirs (d:ds) f = catchError
(\_ -> readFileFromDirs ds f)
instance TemplateMonad PandocIO where
- getPartial fp =
- lift $ UTF8.toText <$>
- catchError (readFileStrict fp)
- (\_ -> readDataFile ("templates" </> fp))
+ getPartial fp = UTF8.toText <$> catchError
+ (readFileStrict fp)
+ (\_ -> readDataFile ("templates" </> fp))
instance TemplateMonad PandocPure where
- getPartial fp =
- lift $ UTF8.toText <$>
- catchError (readFileStrict fp)
- (\_ -> readDataFile ("templates" </> fp))
-
---
+ getPartial fp = UTF8.toText <$> catchError
+ (readFileStrict fp)
+ (\_ -> readDataFile ("templates" </> fp))
-- | 'CommonState' represents state that is used by all
-- instances of 'PandocMonad'. Normally users should not