Files
loop/src/Loop/Data.hs
T
2022-11-01 16:48:55 +00:00

15 lines
340 B
Haskell

{-# LANGUAGE StrictData #-}
--{-# LANGUAGE TemplateHaskell #-}
module Loop.Data where
data ConcurrentEffect world
= NoConcurrentEffect
| ImmediateEffect
{ _immediateEffect :: IO (Maybe world)
}
| ConcurrentEffect
{ _immediateUpdate :: world
, _sideEffect :: IO (world -> Maybe world)
}