mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
Support vty 0.7 (#365)
This commit is contained in:
parent
6476944330
commit
991204d59a
@ -22,7 +22,7 @@ import Data.Monoid
|
||||
import qualified Data.Text as T
|
||||
import Data.Time.Calendar (Day)
|
||||
import qualified Data.Vector as V
|
||||
import Graphics.Vty
|
||||
import Graphics.Vty (Event(..),Key(..))
|
||||
import Lens.Micro.Platform
|
||||
import System.Console.ANSI
|
||||
import System.FilePath (takeFileName)
|
||||
|
@ -13,7 +13,7 @@ import Control.Monad
|
||||
import Control.Monad.IO.Class (liftIO)
|
||||
import Data.Monoid
|
||||
import Data.Time.Calendar (Day)
|
||||
import Graphics.Vty hiding (char, string)-- (Event(..))
|
||||
import Graphics.Vty (Event(..),Key(..))
|
||||
import Text.Parsec
|
||||
|
||||
import Hledger.Cli hiding (progname,prognameandversion,green)
|
||||
|
@ -18,7 +18,7 @@ import Data.Maybe
|
||||
import qualified Data.Text as T
|
||||
import Data.Time.Calendar (Day)
|
||||
import qualified Data.Vector as V
|
||||
import Graphics.Vty
|
||||
import Graphics.Vty (Event(..),Key(..))
|
||||
import Brick
|
||||
import Brick.Widgets.List
|
||||
import Brick.Widgets.Edit
|
||||
|
@ -14,7 +14,7 @@ import Data.List
|
||||
import Data.Monoid
|
||||
import qualified Data.Text as T
|
||||
import Data.Time.Calendar (Day)
|
||||
import Graphics.Vty
|
||||
import Graphics.Vty (Event(..),Key(..))
|
||||
import Brick
|
||||
import Brick.Widgets.List (listMoveTo)
|
||||
import Brick.Widgets.Border (borderAttr)
|
||||
|
@ -40,7 +40,7 @@ module Hledger.UI.UITypes where
|
||||
|
||||
import Data.Monoid
|
||||
import Data.Time.Calendar (Day)
|
||||
import Graphics.Vty
|
||||
import Graphics.Vty (Event)
|
||||
import Brick
|
||||
import Brick.Widgets.List
|
||||
import Brick.Widgets.Edit (Editor)
|
||||
|
@ -13,7 +13,7 @@ import Brick.Widgets.Dialog
|
||||
import Brick.Widgets.Edit
|
||||
import Data.List
|
||||
import Data.Monoid
|
||||
import Graphics.Vty
|
||||
import Graphics.Vty (Event(..),Key(..),Color,Attr,currentAttr)
|
||||
import Lens.Micro.Platform
|
||||
import System.Process
|
||||
|
||||
|
@ -78,7 +78,7 @@ executable hledger-ui
|
||||
, text-zipper >= 0.4 && < 0.5
|
||||
, transformers
|
||||
, vector
|
||||
, vty >= 5.2 && < 5.6
|
||||
, vty >= 5.2 && < 5.8
|
||||
if flag(threaded)
|
||||
ghc-options: -threaded
|
||||
if flag(old-locale)
|
||||
|
@ -83,7 +83,7 @@ executables:
|
||||
- text-zipper >= 0.4 && < 0.5
|
||||
- transformers
|
||||
- vector
|
||||
- vty >= 5.2 && < 5.6
|
||||
- vty >= 5.2 && < 5.8
|
||||
when:
|
||||
- condition: flag(threaded)
|
||||
ghc-options: -threaded
|
||||
|
Loading…
Reference in New Issue
Block a user