@@ -70,8 +70,9 @@ module Reflex.Vty.Widget
7070
7171import Control.Applicative (liftA2)
7272import Control.Monad.Fix (MonadFix)
73−import Control.Monad.Reader
74−import Control.Monad.Trans (lift)
73+import Control.Monad.IO.Class (MonadIO)
74+import Control.Monad.Reader (ReaderT, ask, asks, runReaderT)
75+import Control.Monad.Trans (MonadTrans, lift)
7576import Data.Default (Default(..))
7677import Data.Set (Set)
7778import qualified Data.Set as Set
@@ -142,7 +143,7 @@ instance MonadTrans (VtyWidget t) where
142143
143144instance MonadNodeId m => MonadNodeId (VtyWidget t m) where
144145 getNextNodeId = VtyWidget $ do
145− lift $ lift $ getNextNodeId
146+ lift $ lift getNextNodeId
146147
147148-- | Runs a 'VtyWidget' with a given context
148149runVtyWidget
@@ -492,7 +493,7 @@ splitVDrag wS wA wB = do
492493 rec splitterCheckpoint <- holdDyn splitter0 $ leftmost [fst <$> ffilter snd dragSplitter, resizeSplitter]
493494 splitterPos <- holdDyn splitter0 $ leftmost [fst <$> dragSplitter, resizeSplitter]
494495 splitterFrac <- holdDyn ((1::Double) / 2) $ ffor (attach (current dh) (fst <$> dragSplitter)) $ \(h, x) ->
495− fromIntegral x / (max 1 (fromIntegral h))
496+ fromIntegral x / max 1 (fromIntegral h)
496497 let dragSplitter = fforMaybe (attach (current splitterCheckpoint) dragE) $
497498 \(splitterY, Drag (_, fromY) (_, toY) _ _ end) ->
498499 if splitterY == fromY then Just (toY, end) else Nothing