aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-02-26 10:14:57 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-02-26 10:24:04 -0700
commit4f6d803ad866dd2d201ac7098aa7cd51ad66c981 (patch)
treeb5ebabcc5f22b9c266f00bf44c0602907287c4ac
parent31b3162768edcd1a22cd74160a830b062ec0386a (diff)
downloadsscan-4f6d803ad866dd2d201ac7098aa7cd51ad66c981.tar.gz
comment
-rw-r--r--Main.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Main.hs b/Main.hs
index acc048d..b94c2f8 100644
--- a/Main.hs
+++ b/Main.hs
@@ -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