Skip to content

On the delay-recommendation in Hang / Stack Overflow -section #24

@gspia

Description

@gspia

Is there any chances to extend the example so that it would also show, how to apply the delay,
at hang-stack-overflow-section?

The delay eats NominalDiffTime and it is not outright obvious, what value it should be given.

I had a this kind of situation, where ev2 <- delay 0 ev1 worked and was required. The runtime errors at ghci referred to "bag -problems in Spider/Internal" and once to "ghc loop" when I was doing changes / trying to find a working combination.

So,

  • If there are typical symptons that can be seen, say in ghci, maybe mention those?
  • Is it possible to describe, why the given example needs delay? I mean, why the rec-block isn't enough as such as shown at the moment?
  • What parameter to give to delay? Is 0 ok?

BTW: it seems that those delays area needed every now and then. If 0 is ok and enough in this kind of situations, is there room for frameDelay = delay 0 in the reflex-lib? (With the idea that it wouldn't confuse the user? The proposed name here probably isn't good.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions