packages feed

reflex-ghci 0.2.0.0 → 0.2.0.1

raw patch · 3 files changed

+12/−4 lines, 3 filesdep ~reflex-vtyPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: reflex-vty

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for reflex-ghci +## 0.2.0.1++* Support reflex-vty 0.5+ ## 0.2.0.0  * Support ghc 9.6 and reflex-vty 0.4
reflex-ghci.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: reflex-ghci-version: 0.2.0.0+version: 0.2.0.1 synopsis: A GHCi widget library for use in reflex applications description:   Run GHCi from within a Reflex FRP (<https://reflex-frp.org>) application and interact with it using a functional reactive interface.@@ -37,7 +37,7 @@     , reflex-fsnotify >= 0.3 && < 0.4     , reflex-process >= 0.3.2 && < 0.4     , regex-tdfa >= 1.2.3 && < 1.4-    , reflex-vty >= 0.3 && < 0.5+    , reflex-vty >= 0.3 && < 0.6     , semialign > 1 && < 2     , text >= 1.2 && < 2.1     , these > 1 && < 2
src/Reflex/Vty/GHCi.hs view
@@ -57,8 +57,12 @@           (ix, Just c) -> cmdbtn ix c          let showOutput (Cmd _ out err) = do-              _ <- tile flex $ boxStatic def $ scrollableText never $ pure $ T.decodeUtf8 . unLines $ out-              _ <- tile flex $ boxStatic def $ scrollableText never $ pure $ T.decodeUtf8 . unLines $ err+              let scrollCfg = def+                    { _scrollableConfig_startingPosition = ScrollPos_Bottom+                    , _scrollableConfig_scrollToBottom = pure (Just ScrollToBottom_Maintain)+                    }+              _ <- tile flex $ boxStatic def $ scrollableText scrollCfg $ pure $ T.decodeUtf8 . unLines $ out+              _ <- tile flex $ boxStatic def $ scrollableText scrollCfg $ pure $ T.decodeUtf8 . unLines $ err               pure ()          void $ networkHold (void $ networkView $ maybe blank (showOutput . snd) <$> command) $ leftmost