@@ -12,6 +12,7 @@ module Reflex.Profiled where
1212
1313import Control.Lens hiding (children)
1414import Control.Monad
15+import Control.Monad.Exception
1516import Control.Monad.Fix
1617import Control.Monad.Primitive
1718import Control.Monad.Reader
@@ -101,7 +102,8 @@ writeProfilingData :: FilePath -> IO ()
101102writeProfilingData p = do
102103 writeFile p =<< formatCostCentreTree =<< getCostCentreTree
103104
104−newtype ProfiledM m a = ProfiledM { runProfiledM :: m a } deriving (Functor, Applicative, Monad, MonadFix)
105+newtype ProfiledM m a = ProfiledM { runProfiledM :: m a }
106+ deriving (Functor, Applicative, Monad, MonadFix, MonadException, MonadAsyncException)
105107
106108profileEvent :: Reflex t => Event t a -> Event t a
107109profileEvent e = unsafePerformIO $ do