summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Compiler/Internal.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-09 13:02:28 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-09 13:02:28 +0100
commitee320c61668b532cafce7f4fd0a80ba43b3b512a (patch)
treecff36ca13a54208f5f4d1fd96b3edea5133b66de /src/Hakyll/Core/Compiler/Internal.hs
parentf56eb538b6e366202f796c84eee46e620f519ff6 (diff)
downloadhakyll-ee320c61668b532cafce7f4fd0a80ba43b3b512a.tar.gz
Finish tags module
Diffstat (limited to 'src/Hakyll/Core/Compiler/Internal.hs')
-rw-r--r--src/Hakyll/Core/Compiler/Internal.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Hakyll/Core/Compiler/Internal.hs b/src/Hakyll/Core/Compiler/Internal.hs
index be78412..a524a66 100644
--- a/src/Hakyll/Core/Compiler/Internal.hs
+++ b/src/Hakyll/Core/Compiler/Internal.hs
@@ -60,11 +60,11 @@ data Compiler a b = Compiler
}
instance Functor (Compiler a) where
- fmap f (Compiler d j) = Compiler d $ fmap f . j
+ fmap f ~(Compiler d j) = Compiler d $ fmap f . j
instance Applicative (Compiler a) where
pure = Compiler (return S.empty) . const . return
- (Compiler d1 f) <*> (Compiler d2 j) =
+ ~(Compiler d1 f) <*> ~(Compiler d2 j) =
Compiler (liftM2 S.union d1 d2) $ \x -> f x <*> j x
instance Category Compiler where
@@ -74,12 +74,12 @@ instance Category Compiler where
instance Arrow Compiler where
arr f = Compiler (return S.empty) (return . f)
- first (Compiler d j) = Compiler d $ \(x, y) -> do
+ first ~(Compiler d j) = Compiler d $ \(x, y) -> do
x' <- j x
return (x', y)
instance ArrowChoice Compiler where
- left (Compiler d j) = Compiler d $ \e -> case e of
+ left ~(Compiler d j) = Compiler d $ \e -> case e of
Left l -> Left <$> j l
Right r -> Right <$> return r