brick-panes 1.0.0.3 → 1.0.0.4
raw patch · 4 files changed
+27/−15 lines, 4 filesdep ~basedep ~brickdep ~bytestringPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, brick, bytestring, directory, text-zipper, vty
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- README.org +2/−2
- brick-panes.cabal +16/−11
- samples/mywork/Main.hs +4/−2
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for brick-panes +## 1.0.0.4 -- 2023-03-30++* Bump upper bounds to allow brick 1.6 and vty 5.39 and text-zipper 0.13.+* Bump upper bounds to allow GHC 9.6 and remove constraints on builtins.+ ## 1.0.0.3 -- 2022-12-18 * Bump upper bound for brick to allow brick 1.5.
README.org view
@@ -412,7 +412,7 @@ class Pane n appEv pane | pane -> n where data (PaneState pane appEv) -- State information associated with this Pane type (InitConstraints pane initctxt) :: Constraint- initPaneState (InitConstraints pane i) => i -> PaneState pane appEv+ initPaneState :: (InitConstraints pane i) => i -> PaneState pane appEv type (InitConstraints pane initctxt) = () #+end_src@@ -466,7 +466,7 @@ data (PaneState pane appEv) -- State information associated with this Pane type (InitConstraints pane initctxt) :: Constraint type (DrawConstraints pane drwctxt n) :: Constraint- initPaneState (InitConstraints pane i) => i -> PaneState pane appEv+ initPaneState :: (InitConstraints pane i) => i -> PaneState pane appEv drawPane :: (DrawConstraints pane drawcontext n, Eq n) => PaneState pane appEv -> drawcontext -> Maybe (Widget n)
brick-panes.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: brick-panes-version: 1.0.0.3+version: 1.0.0.4 synopsis: Panes library for Brick providing composition and isolation for TUI apps. @@ -17,7 +17,11 @@ copyright: (c) Kevin Quick, 2022 category: Graphics build-type: Simple-tested-with: GHC == 8.8.4, GHC == 8.10.7, GHC == 9.2.4, GHC == 9.4.2+tested-with: GHC == 8.8.4+ GHC == 8.10.7+ GHC == 9.2.7+ GHC == 9.4.4+ GHC == 9.6 extra-doc-files: CHANGELOG.md , README.org@@ -37,6 +41,7 @@ -Wincomplete-uni-patterns -Wsimplifiable-class-constraints -Wpartial-fields+ -fprint-potential-instances -fhide-source-paths library@@ -44,11 +49,11 @@ hs-source-dirs: src default-language: Haskell2010 exposed-modules: Brick.Panes- build-depends: base >= 4.13 && < 4.18- , brick >= 1.0 && < 1.6+ build-depends: base >= 4.13 && < 4.19+ , brick >= 1.0 && < 1.7 , containers , microlens >= 0.4.11.2 && < 0.5- , vty >= 5.35 && < 5.38+ , vty >= 5.35 && < 5.39 executable mywork-example import: settings@@ -65,19 +70,19 @@ Panes.Summary Paths_brick_panes autogen-modules: Paths_brick_panes- build-depends: base >= 4.13 && < 4.18+ build-depends: base >= 4.13 && < 4.19 , brick , brick-panes , aeson >= 2.0 && < 2.2- , bytestring >= 0.10 && < 0.13+ , bytestring , containers- , directory >= 1.3 && < 1.4+ , directory , microlens >= 0.4.11.2 && < 0.5 , text- , text-zipper >= 0.12 && < 0.13+ , text-zipper >= 0.12 && < 0.14 , time , vector >= 0.12 && < 0.14- , vty >= 5.35 && < 5.38+ , vty >= 5.35 && < 5.39 if !flag(examples) buildable: False @@ -89,7 +94,7 @@ type: exitcode-stdio-1.0 hs-source-dirs: test main-is: Main.hs- build-depends: base >= 4.13 && < 4.18+ build-depends: base >= 4.13 && < 4.19 , brick-panes
samples/mywork/Main.hs view
@@ -24,7 +24,6 @@ import Lens.Micro import Defs--- import InitialData import Panes.Location () import Panes.Operations import Panes.Projects ()@@ -32,6 +31,9 @@ import Panes.FileMgr import Paths_brick_panes ( version ) +-- import InitialData+-- import Data.ByteString.Lazy as BS+-- import Data.Aeson ( encode ) type MyWorkState = Panel WName MyWorkEvent MyWorkCore '[ SummaryPane@@ -43,7 +45,7 @@ main :: IO () main = defaultMain myworkApp initialState >> return ()-+-- main = BS.writeFile "projects.json" (encode $ initial_projects) myworkApp :: App MyWorkState MyWorkEvent WName myworkApp = App { appDraw = drawMyWork