Skip to content

Could forever be Applicative f => f a -> Void instead? #327

@aleator

Description

@aleator

Just asking, since

foo :: IO (Async ())
foo = forever $ do ...

vs.

bar :: IO (Async ())
bar = async $ forever $ do ...

seems like common error for less attentive guys like me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    newBring something new into library (add function or type or interface)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions