mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Align some comments.
This commit is contained in:
parent
74d7ca7df2
commit
da4e45189e
@ -18,8 +18,8 @@ import Data.Text.Encoding (decodeUtf8)
|
||||
-- | Lift an algebra into a decorator for terms annotated with records.
|
||||
decoratorWithAlgebra :: Functor syntax
|
||||
=> RAlgebra (TermF syntax (Record fs)) (Term syntax (Record fs)) a -- ^ An R-algebra on terms.
|
||||
-> Term syntax (Record fs) -- ^ A term to decorate with values produced by the R-algebra.
|
||||
-> Term syntax (Record (a ': fs)) -- ^ A term decorated with values produced by the R-algebra.
|
||||
-> Term syntax (Record fs) -- ^ A term to decorate with values produced by the R-algebra.
|
||||
-> Term syntax (Record (a ': fs)) -- ^ A term decorated with values produced by the R-algebra.
|
||||
decoratorWithAlgebra alg = para $ \ c@(In a f) -> termIn (alg (fmap (second (rhead . termAnnotation)) c) :. a) (fmap snd f)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user