Skip to content

using evalRandT and RandT explicitly#35

Merged
jvoigtlaender merged 8 commits into
mainfrom
issue-34
Feb 5, 2026
Merged

using evalRandT and RandT explicitly#35
jvoigtlaender merged 8 commits into
mainfrom
issue-34

Conversation

@guard-who
Copy link
Copy Markdown
Member

close #34

@guard-who guard-who changed the title using evalRandT and RandT directly using evalRandT and RandT directly Feb 5, 2026
@guard-who guard-who changed the title using evalRandT and RandT directly using evalRandT and RandT explicitly Feb 5, 2026
Comment thread app/enumeratedArrowsDirectDemo.hs Outdated
>>= randomiseLayout
evalRandT
(randomise defaultEnumArrowsInstance >>= randomiseLayout)
(mkStdGen timestamp)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that previously the timestamp was not actually used as seed for the randomness, instead just as recording when the instance was generated. Whereas the randomness was derived from just the internal random generator in IO.

It's debatable whether that was a good approach, but then that should be a separate issue.

For now, just making the code compile again, I would argue the behavior should not be changed from what it was before. That is, not initializing the randomness from the timestamp variable here, instead using IO's built-in PRNG. I think that would be achieved by using evalRandTIO instead of evalRandT.

@jvoigtlaender
Copy link
Copy Markdown
Member

Same in the other places.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@jvoigtlaender jvoigtlaender merged commit 4da04a0 into main Feb 5, 2026
17 checks passed
@jvoigtlaender jvoigtlaender deleted the issue-34 branch February 5, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiling complaint when updating library dependencies

2 participants