| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Data.Star
Description
A class for *-semirings (pron. "star-semirings").
Documentation
class Semiring a => Star a where Source #
A Star semiring
adds one operation, star to a Semiring, such that it follows the
law:
starx =one+x*starx =one+starx*x
Another operation, aplus, can be defined in terms of star:
aplusx = x*starx