diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2017-02-26 10:14:57 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2017-02-26 10:24:04 -0700 |
commit | 4f6d803ad866dd2d201ac7098aa7cd51ad66c981 (patch) | |
tree | b5ebabcc5f22b9c266f00bf44c0602907287c4ac | |
parent | 31b3162768edcd1a22cd74160a830b062ec0386a (diff) | |
download | sscan-4f6d803ad866dd2d201ac7098aa7cd51ad66c981.tar.gz |
comment
-rw-r--r-- | Main.hs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -93,6 +93,10 @@ handleESC st = ifScanSess st ((liftIO . abortScanSess) st >>= continue) (continue st) +-- TODO these IO actions should not get a whole St. They should get +-- the bits of St that they need. The pure function that invokes +-- these actions should update St appropriately + beginScanSess :: St -> IO St beginScanSess st = do temp <- getTemporaryDirectory @@ -126,6 +130,9 @@ finishScanSess st = do finishScanSess' :: St -> IO St finishScanSess' st = undefined +-- run scanimage with appropriate arguments. If scanimage exists +-- non-zero, inform the user that we will abort the scan session, +-- pause for them to read the output, and then abort the scan session scanNextPage :: St -> IO St scanNextPage st = undefined |