Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iTasks-SDK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
74
Issues
74
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
iTasks-SDK
Commits
19f55f0b
Commit
19f55f0b
authored
Jun 07, 2019
by
Tim Steenvoorden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prettyfy
parent
4c396dd6
Pipeline
#24893
passed with stage
in 5 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Examples/DynamicEditor/DynEditorExample.icl
Examples/DynamicEditor/DynEditorExample.icl
+5
-3
No files found.
Examples/DynamicEditor/DynEditorExample.icl
View file @
19f55f0b
...
...
@@ -234,6 +234,8 @@ where
]
// Helpers //
derivedType
::
Typed
Ty
a
|
iTask
a
derivedType
=
case
dynToValue
of
(
toValue
::
a
^
->
Value
|
iTask
a
^)
=
Typed
(
Ty
toValue
)
...
...
@@ -253,8 +255,10 @@ stringEditor = gEditor{|*|}
applyHorizontalClasses
=
ApplyCssClasses
[
"itasks-horizontal"
,
"itasks-wrap-width"
,
"itasks-panel"
]
// Evaluation //////////////////////////////////////////////////////////////////
evalTaskConstExpr
::
TaskConstExpr
->
Task
Value
evalTaskConstExpr
(
EnterInfo
prompt
(
Ty
toValue
))
=
enterInformation
prompt
[]
@
toValue
evalTaskConstExpr
(
EnterInfo
msg
(
Ty
toValue
))
=
enterInformation
msg
[]
@
toValue
evalTaskConstExpr
(
Apply
taskFunc
expr
)
=
evalTaskFuncExpr
taskFunc
$
evalExpr
expr
evalTaskConstExpr
(
Then
task
taskFunc
)
=
evalTaskConstExpr
task
>>=
evalTaskFuncExpr
taskFunc
evalTaskConstExpr
(
Or
task1
task2
)
=
evalTaskConstExpr
task1
-||-
evalTaskConstExpr
task2
...
...
@@ -277,7 +281,6 @@ where
evalTaskFuncExpr
::
TaskFuncExpr
Value
->
Task
Value
evalTaskFuncExpr
(
ViewInfo
p
)
(
VInt
i
)
=
(
viewInformation
p
[]
i
@
VInt
)
<<@
ApplyLayout
arrangeHorizontal
evalTaskFuncExpr
(
ViewInfo
p
)
(
VBool
b
)
=
(
viewInformation
p
[]
b
@
VBool
)
<<@
ApplyLayout
arrangeHorizontal
evalTaskFuncExpr
(
ViewInfo
p
)
(
VString
s
)
=
(
viewInformation
p
[]
s
@
VString
)
<<@
ApplyLayout
arrangeHorizontal
...
...
@@ -288,7 +291,6 @@ evalTaskFuncExpr (ViewInfo p) (VTuple a b) =
@
\(
a
,
b
)
->
VTuple
a
b
)
<<@
ApplyLayout
arrangeHorizontal
evalTaskFuncExpr
(
UpdateInfo
p
)
(
VInt
i
)
=
(
updateInformation
p
[]
i
@
VInt
)
<<@
ApplyLayout
arrangeHorizontal
evalTaskFuncExpr
(
UpdateInfo
p
)
(
VBool
b
)
=
(
updateInformation
p
[]
b
@
VBool
)
<<@
ApplyLayout
arrangeHorizontal
evalTaskFuncExpr
(
UpdateInfo
p
)
(
VString
s
)
=
(
updateInformation
p
[]
s
@
VString
)
<<@
ApplyLayout
arrangeHorizontal
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment