| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Agda.Utils.SemiRing
Synopsis
- class SemiRing a where
- class SemiRing a => StarSemiRing a where
Documentation
Semirings (https://en.wikipedia.org/wiki/Semiring).
Instances
| SemiRing () # | |
| SemiRing Occurrence # |
It forms a commutative semiring where For |
Defined in Agda.TypeChecking.Positivity.Occurrence Methods ozero :: Occurrence # oone :: Occurrence # oplus :: Occurrence -> Occurrence -> Occurrence # otimes :: Occurrence -> Occurrence -> Occurrence # | |
| SemiRing Weight # | |
| SemiRing Edge # | These operations form a semiring if we quotient by the relation
"the |
| SemiRing a => SemiRing (Maybe a) # | |
class SemiRing a => StarSemiRing a where #
Star semirings (https://en.wikipedia.org/wiki/Semiring#Star_semirings).
Minimal complete definition
Instances
| StarSemiRing () # | |
Defined in Agda.Utils.SemiRing | |
| StarSemiRing Occurrence # | |
Defined in Agda.TypeChecking.Positivity.Occurrence Methods ostar :: Occurrence -> Occurrence # | |
| StarSemiRing Edge # | As E.g. |
Defined in Agda.TypeChecking.Positivity | |
| StarSemiRing a => StarSemiRing (Maybe a) # | |
Defined in Agda.Utils.SemiRing | |