summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--events/src/Events/Spec.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/events/src/Events/Spec.hs b/events/src/Events/Spec.hs
index a4546f8..eaf4a7e 100644
--- a/events/src/Events/Spec.hs
+++ b/events/src/Events/Spec.hs
@@ -1,8 +1,7 @@
1{-# LANGUAGE RankNTypes #-} 1{-# LANGUAGE RankNTypes #-}
2 2
3module Events.Spec 3module Events.Spec
4 ( interpret 4 ( Spec, Expr(..), Val(..), Bindable(..), Elem(..)
5 , Spec, Expr(..), Val(..), Bindable(..), Elem(..)
6 , module Events.Spec.Parse 5 , module Events.Spec.Parse
7 , module Events.Spec.Eval 6 , module Events.Spec.Eval
8 ) where 7 ) where
@@ -19,7 +18,3 @@ import Data.Text (Text)
19import qualified Data.Text as T 18import qualified Data.Text as T
20 19
21import Control.Monad.Catch (MonadThrow) 20import Control.Monad.Catch (MonadThrow)
22
23
24interpret :: Monad m => Sink (Spec m) (Eval m) ()
25interpret = maybe (lift mzero) (const interpret <=< lift . evalExpr) =<< await