override CLMFLAGS+=-l -no-pie
endif
+# -I ~/projects/iTasks-SDK/Libraries
CLMLIBS:=\
-I $(CLEAN_HOME)/lib/Platform\
-I $(CLEAN_HOME)/lib/Platform/Deprecated/StdLib\
- -I ~/projects/iTasks-SDK/Libraries\
+ -I $(CLEAN_HOME)/lib/iTasks\
-I $(CLEAN_HOME)/lib/GraphCopy\
-I $(CLEAN_HOME)/lib/Sapl\
-I $(CLEAN_HOME)/lib/StdEnv\
manageShares shares = withShared Nothing $ \cs->forever $
(viewSharesGrid cs shares -|| updateShares shares <<@ ArrangeVertical)
@! ()
+
updateShares :: [MTaskShare] -> Task BCValue
updateShares shares = anyTask (map updateS shares) <<@ ArrangeWithTabs
echo "Downloading and installing clean nightly" >&2
curl -sSL ftp://ftp.cs.ru.nl/pub/Clean/builds/linux-x64/clean-bundle-complete-linux-x64-latest.tgz \
| tar --gunzip --strip-components=1 --extract --directory="$TARGET"
-curl -sSL https://gitlab.science.ru.nl/clean-and-itasks/iTasks-SDK/raw/master/Libraries/iTasks/_Framework/TaskServer.dcl \
- > $TARGET/lib/iTasks/iTasks/_Framework/TaskServer.dcl
-curl -sSL https://gitlab.science.ru.nl/clean-and-itasks/iTasks-SDK/raw/master/Libraries/iTasks/_Framework/TaskServer.icl \
- > $TARGET/lib/iTasks/iTasks/_Framework/TaskServer.icl
echo "export CLEAN_HOME=$TARGET; export PATH=$TARGET/bin:\$PATH;"
import TTY, iTasksTTY
-//derive class iTask ByteSize, Parity, BaudRate, TTYSettings, TCPSettings
-//derive class iTask MTaskDeviceSpec, MTaskResource, MTaskTask, MTaskDevice
+Start world = startEngine [
+ publish "/manage" $ const $ mTaskManager
+ >>* [OnAction (Action "Shutdown") (always $ shutDown)],
+ publish "/" $ const demo
+ ] world
-Start world = startEngine (mTaskManager
- >>* [OnAction (Action "Shutdown") (always $ shutDown)]) world
+demo = viewInformation "" [] "Hello world"
mTaskManager :: Task ()
mTaskManager = startupDevices >>| anyTask
[ viewmTasks @! ()
, whileUnchanged sdsStore manageShares
, whileUnchanged deviceStore $ manageDevices process
- ] <<@ ApplyLayout (sequenceLayouts
- [ arrangeWithSideBar 0 LeftSide 260 True
- , arrangeSplit Vertical True
- ])
+ ] <<@ ApplyLayout (foldr1 sequenceLayouts
+ [arrangeWithSideBar 0 LeftSide 260 True
+ ,arrangeSplit Vertical True])
where
viewmTasks :: Task String
viewmTasks = enterChoiceWithShared "Available mTasks" [ChooseFromList id] mTaskTaskStore