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
7
Merge Requests
7
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
cad04799
Commit
cad04799
authored
Jun 11, 2019
by
Tim Steenvoorden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swap order of type and message in Enter
parent
4e3f184d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Examples/DynamicEditor/DynEditorExample.icl
Examples/DynamicEditor/DynEditorExample.icl
+5
-5
No files found.
Examples/DynamicEditor/DynEditorExample.icl
View file @
cad04799
...
...
@@ -51,7 +51,7 @@ where
::
TaskExpr
=
Done
Expr
|
EnterInfo
String
Ty
|
EnterInfo
Ty
String
|
Then
TaskExpr
TaskFunc
|
Both
TaskExpr
TaskExpr
|
Any
TaskExpr
TaskExpr
...
...
@@ -187,14 +187,14 @@ taskEditor = DynamicEditor
]
,
DynamicConsGroup
"Editors"
[
functionConsDyn
"Enter"
"enter"
(
dynamic
\
s
(
Typed
ty
)
->
Typed
(
EnterInfo
s
ty
)
::
(
dynamic
\
(
Typed
ty
)
s
->
Typed
(
EnterInfo
ty
s
)
::
A
.
a
:
String
(
Typed
Ty
a
)
String
->
Typed
TaskExpr
(
Task
a
)
)
<<@@@
applyHorizontalClasses
<<@@@
AddLabels
[
Just
"message"
,
Just
"typ
e"
]
<<@@@
AddLabels
[
Nothing
,
Just
"messag
e"
]
,
functionConsDyn
"ViewF"
"view"
(
dynamic
\
s
(
Typed
func
)
->
Typed
(
ViewF
s
func
)
::
A
.
a
b
:
...
...
@@ -346,7 +346,7 @@ where
evalTaskExpr
::
TaskExpr
->
Task
Value
evalTaskExpr
(
Done
expr
)
=
return
$
evalExpr
expr
evalTaskExpr
(
EnterInfo
msg
(
Ty
toValue
)
)
=
enterInformation
msg
[]
@
toValue
evalTaskExpr
(
EnterInfo
(
Ty
toValue
)
msg
)
=
enterInformation
msg
[]
@
toValue
evalTaskExpr
(
Then
task
taskFunc
)
=
evalTaskExpr
task
>>=
evalTaskFunc
taskFunc
evalTaskExpr
(
Any
task1
task2
)
=
(
evalTaskExpr
task1
-||-
evalTaskExpr
task2
)
<<@
ApplyLayout
arrangeHorizontal
evalTaskExpr
(
Both
task1
task2
)
=
(
evalTaskExpr
task1
-&&-
evalTaskExpr
task2
)
<<@
ApplyLayout
arrangeHorizontal
@
\(
a
,
b
)
->
VTuple
a
b
...
...
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