Skip to content

feat: new monadic Query design#88

Draft
matthunz wants to merge 6 commits intomainfrom
q
Draft

feat: new monadic Query design#88
matthunz wants to merge 6 commits intomainfrom
q

Conversation

@matthunz
Copy link
Collaborator

@matthunz matthunz commented Jan 29, 2026

moveRec :: (Applicative f, MonadFix m) => Query f m (f Position)
moveRec = mdo
  vs <- queryMap $ \vs' -> (\(Position p) (Velocity v) -> Velocity $ p + v) <$> ps <*> vs'
  ps <- queryMap $ \ps' -> (\(Velocity v) (Position p) -> Position $ p + v) <$> vs <*> ps'
  return ps

@matthunz matthunz added the enhancement New feature or request label Jan 29, 2026
@matthunz matthunz changed the title feat: new monadic Query design feat: new monadic Query design Jan 29, 2026
@matthunz matthunz marked this pull request as draft February 3, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant