1
1
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:
Rob Rix 2017-04-24 15:43:22 -04:00
parent fa520d6089
commit d429d77b15

View File

@ -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.
--