mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-11-29 10:54:48 +03:00
Use strict state monad everywhere we use a state monad
This commit is contained in:
parent
f2f8013d63
commit
49797717ab
@ -53,7 +53,7 @@ where
|
||||
|
||||
import qualified Control.Exception as E
|
||||
import Lens.Micro ((^.), (&), (.~), (%~), _1, _2)
|
||||
import Control.Monad.State
|
||||
import Control.Monad.State.Strict
|
||||
import Control.Monad.Reader
|
||||
import Control.Concurrent (forkIO, killThread)
|
||||
import qualified Data.Foldable as F
|
||||
|
@ -109,7 +109,7 @@ import Control.Monad.Catch (MonadThrow, MonadCatch, MonadMask)
|
||||
#if !MIN_VERSION_base(4,13,0)
|
||||
import Control.Monad.Fail (MonadFail)
|
||||
#endif
|
||||
import Control.Monad.State.Lazy
|
||||
import Control.Monad.State.Strict
|
||||
import Control.Monad.Reader
|
||||
import Graphics.Vty (Attr)
|
||||
|
||||
|
@ -83,7 +83,7 @@ module Brick.Types.Internal
|
||||
where
|
||||
|
||||
import Control.Monad.Reader
|
||||
import Control.Monad.State.Lazy
|
||||
import Control.Monad.State.Strict
|
||||
import Lens.Micro (_1, _2, Lens')
|
||||
import Lens.Micro.Mtl (use)
|
||||
import Lens.Micro.TH (makeLenses)
|
||||
|
@ -121,7 +121,7 @@ import Data.Monoid ((<>))
|
||||
|
||||
import Lens.Micro ((^.), (.~), (&), (%~), to, _1, _2, each, to, Lens')
|
||||
import Lens.Micro.Mtl (use, (%=))
|
||||
import Control.Monad.State.Lazy
|
||||
import Control.Monad.State.Strict
|
||||
import Control.Monad.Reader
|
||||
import qualified Data.Foldable as F
|
||||
import qualified Data.Text as T
|
||||
|
@ -10,7 +10,7 @@ where
|
||||
|
||||
import Lens.Micro ((^.), (&), (%~))
|
||||
import Lens.Micro.Mtl ((%=))
|
||||
import Control.Monad.State.Lazy
|
||||
import Control.Monad.State.Strict
|
||||
import Control.Monad.Reader
|
||||
import Data.Maybe (fromMaybe)
|
||||
import qualified Data.Map as M
|
||||
|
Loading…
Reference in New Issue
Block a user