mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Define a type synonym for R-algebras.
This commit is contained in:
parent
fa520d6089
commit
d429d77b15
@ -112,6 +112,9 @@ optional a = a <|> term <*> pure Syntax.Empty
|
||||
-- | An F-algebra on some carrier functor 'f'.
|
||||
type FAlgebra f a = f a -> a
|
||||
|
||||
-- | An R-algebra on the base functor of some type 't'.
|
||||
type RAlgebra t a = Base t (t, a) -> a
|
||||
|
||||
|
||||
-- | Produce a list of identifiable subterms of a given term.
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user