Open gameboo opened 5 years ago
Yeah, library seems happy if we introduce
class When m where
when :: Bit 1 -> Action () -> m ()
with instances for Module
and Action
.
Just wondering if there are any annoying cases when the type is no longer inferred. The other option is to have a new function, e.g. on
, or whenever
.
I think I prefer the same name but I don't know how likely it would be for the type not to be inferred correctly...
<troll>
if only Action
and Module
where the same</troll>
I think it would be nice to have
when
work as awhen :: Bit 1 -> Action () -> Module ()
on top of justwhen :: Bit 1 -> Action () -> Action ()
. I'd like to write something likeinstead of
or