Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
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
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • clean-and-itasks
  • iTasks-SDK
  • Issues
  • #113

Closed
Open
Opened May 04, 2017 by Markus Klinik@mklinikDeveloper

The button generated by >>| should always be enabled

When running the following program, the continue button is disabled until the user selects a value in the drop-down box. As the selected value is ignored by the >>| combinator the button should always be enabled.

module Main
import iTasks
Start world = startEngine main world
main = enterChoice () [] [1,2,3] >>| viewInformation "hello" [] "world"

The implementation of >>| should be:

(>>|) taskA taskB = step taskA (const Nothing)
  [ OnAction ActionContinue (const $ Just taskB)
  , OnValue (ifStable $ const taskB)
  ]
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: clean-and-itasks/iTasks-SDK#113