From: Mart Lubbers Date: Mon, 6 Mar 2017 18:53:44 +0000 (+0100) Subject: make compilable X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=497a31ebe6922b1b9f889450f5830f1ca1c4bb59;p=mTask.git make compilable --- diff --git a/Shares/mTaskShare.icl b/Shares/mTaskShare.icl index c0087d8..70d1014 100644 --- a/Shares/mTaskShare.icl +++ b/Shares/mTaskShare.icl @@ -7,7 +7,13 @@ import mTask from Data.Func import $ manageShares :: [MTaskShare] -> Task () -manageShares shares = forever (enterChoice "Choose share to update" [ChooseFromGrid id] shares +manageShares shares = forever (enterChoice "Choose share to update" [ChooseFromGrid id] shares) + @! () + + + +/* + forever (enterChoice "Choose share to update" [ChooseFromGrid id] shares >&^ \st->whileUnchanged st $ \msh->case msh of Nothing = viewShares shares @! zero Just sh = forever ( @@ -16,7 +22,7 @@ manageShares shares = forever (enterChoice "Choose share to update" [ChooseFromG >>= updateShare sh ) - ) @! () + ) @! ()*/ updateShare :: MTaskShare a -> Task MTaskShare | toByteCode, iTask a updateShare sh=:{withTask,identifier} a = getDeviceByName withTask