selective icon indicating copy to clipboard operation
selective copied to clipboard

Selective Applicative Functors: Declare Your Effects Statically, Select Which to Execute Dynamically

Results 12 selective issues
Sort by recently updated
recently updated
newest added

It seems to me that `Selective` functors could in principle desugar more do notations than `Applicative`s. For example: ```haskell main = do number Maybe Int) getLine case number of Just...

I'm aware of the technical definition of what it means for a `Selective` to be rigid. What I'm missing is the significance of being (or indeed, not being) rigid: in...

See https://github.com/snowleopard/selective/issues/54. I went for the instance isomorphic to the one of `ExceptT`. * [ ] Add some unit tests to see whether the laws hold

`Either` naturally generalises as a monad transformer, `ExceptT`, and we've recently established that this is a bona fide `Selective` transformer, meaning that there is a natural instance `Selective f =>...

See https://github.com/snowleopard/selective/pull/39#issuecomment-1164093318 and https://github.com/snowleopard/selective/issues/37#issuecomment-1162756271

Is there for example an instance: ```haskell instance Selective f => Selective (ReaderT r f a) ```

I was wondering if it mightn't be instructive to somewhere discuss what happens when you try to compose with Selective functors. It seemed to me that you can only ever...

It would be really useful to know this. While it can be inferred from the implementations, having this information in the documentation for the instances would be great.

I've been thinking about the correctness of `bindS` and if there was any way to prove that if for a data type `a`, `(Bounded a, Enum a)` are well defined...