diff options
-rw-r--r-- | events/src/Events/Spec.hs | 7 |
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 | ||
3 | module Events.Spec | 3 | module 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) | |||
19 | import qualified Data.Text as T | 18 | import qualified Data.Text as T |
20 | 19 | ||
21 | import Control.Monad.Catch (MonadThrow) | 20 | import Control.Monad.Catch (MonadThrow) |
22 | |||
23 | |||
24 | interpret :: Monad m => Sink (Spec m) (Eval m) () | ||
25 | interpret = maybe (lift mzero) (const interpret <=< lift . evalExpr) =<< await | ||