Some cleanup
This commit is contained in:
parent
26c51b9e15
commit
4c485dd062
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{-# LANGUAGE ExistentialQuantification, FlexibleInstances, MultiParamTypeClasses, Arrows #-}
|
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, Arrows #-}
|
||||||
|
|
||||||
module Control.CacheArrow ( CacheArrow
|
module Control.CacheArrow ( CacheArrow
|
||||||
, runCache'
|
, runCache'
|
||||||
|
@ -31,7 +31,7 @@ instance Arrow a => ArrowTransformer CacheArrow a where
|
||||||
lift = CacheArrow Nothing
|
lift = CacheArrow Nothing
|
||||||
|
|
||||||
|
|
||||||
runCacheAlways :: (ArrowChoice a, Eq b) => CacheArrow a b c -> a b (c, CacheArrow a b c)
|
runCacheAlways :: Arrow a => CacheArrow a b c -> a b (c, CacheArrow a b c)
|
||||||
runCacheAlways (CacheArrow _ f) = proc b -> do
|
runCacheAlways (CacheArrow _ f) = proc b -> do
|
||||||
c <- f -< b
|
c <- f -< b
|
||||||
returnA -< (c, CacheArrow (Just (b, c)) f)
|
returnA -< (c, CacheArrow (Just (b, c)) f)
|
||||||
|
|
Reference in a new issue