-
I've been working with the following signature in my projects:
```haskell
monoid :: Sig
monoid = background
[ con "mempty" $ liftC @(Monoid A) $ mempty @A
, con "" $ liftC @(Semigroup A…
-
Is there any reason not to include a monoid instance for FingerTree?
```
instance monoidFingerTree :: (Monoid v, Measured a v) => Monoid (FingerTree v a) where
mempty = Empty
```
-
When experimenting with the Cabal solver, I've defined the following orphan `Monoid` instance:
``` haskell
instance (Monoid c, Monoid a) => Monoid (CondTree v c a) where
mempty = CondNode mempty …
-
### Steps To Reproduce
```
sage: from sage.monoids.indexed_free_monoid import IndexedFreeMonoid
sage: L=['a','b','c']
sage: F=IndexedFreeMonoid(L)
sage: F
Free monoid indexed by {'a', 'b', 'c'…
-
Here's a benchmarking example if you want it. It takes about five hours with Monoid Automata Factory, and about five minutes (if you give the -t 2000000 option) with kbmag. I'd be curious how this J…
-
I have figured out a seriously faster version of the stack monoid algorithm (see [stack monoid revisited](https://raphlinus.github.io/gpu/2021/05/13/stack-monoid-revisited.html)) and want to write tha…
-
Is there a good way to represent the transition semigroup/monoid for DFA? I can think of a way to put all the induced functions `q → q` into a list for a given `DFA q s` but I'm not sure that would be…
-
I can't figure out where this should go, since `Ordering` is defined in Classes.idr but `Monoid` is in Algebra.idr:
``` idris
instance Semigroup Ordering where
() EQ b = b
() a _ = a
instance M…
-
for instance:
- the one in `_swaggerPaths` should treat the values as monoids and merge them.
- `PathItem` should merge, but overwrites.
- the on in `_operationResponses` (inside the `Responses` …
-
`Any`, `All`, `First`, `Last`, `Sum`, and `Product` are all useful type/constructor names and it's very rare that I would use the newtype instead of just calling the function of the same name.
The …