diff options
Diffstat (limited to 'test5.hs')
-rw-r--r-- | test5.hs | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -35,6 +35,7 @@ import RenderTreeView (renderTreeView) import Scanner (scan,Scan(..)) import Screen import Safe +import State import System.Directory import System.Console.Docopt.NoTH (getArgWithDefault, parseArgsOrExit, parseUsageOrExit, shortOption) import System.Environment @@ -68,19 +69,6 @@ withForkWait async body = do restore (body wait) `onException` killThread tid -data State = State - { cursor :: Z.TreePos Z.Full TreeView - , xoffset :: Int - , yoffset :: Int - , flashMessage :: Blessings String - , screenWidth :: Int - , screenHeight :: Int - , headBuffer :: [Blessings String] - , treeBuffer :: [Blessings String] - , now :: UTCTime - , signalHandlers :: [(Signal, IO ())] - } - initState :: String -> IO State initState query = do r_ <- either error id <$> Notmuch.search |