summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Target.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hakyll/Core/Target.hs')
-rw-r--r--src/Hakyll/Core/Target.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Hakyll/Core/Target.hs b/src/Hakyll/Core/Target.hs
index b8740bc..452fb57 100644
--- a/src/Hakyll/Core/Target.hs
+++ b/src/Hakyll/Core/Target.hs
@@ -4,7 +4,6 @@
module Hakyll.Core.Target
( DependencyLookup
, TargetM
- , Target
, runTarget
, getIdentifier
, getResourceString
@@ -20,12 +19,12 @@ import Hakyll.Core.ResourceProvider
-- | Get the current identifier
--
-getIdentifier :: TargetM a Identifier
+getIdentifier :: TargetM Identifier
getIdentifier = TargetM $ targetIdentifier <$> ask
-- | Get the resource content as a string
--
-getResourceString :: TargetM a String
+getResourceString :: TargetM String
getResourceString = TargetM $ do
provider <- targetResourceProvider <$> ask
identifier <- unTargetM getIdentifier