mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Define kfold in terms of gfold.
This commit is contained in:
parent
88ab103a23
commit
bc2c536822
@ -306,4 +306,4 @@ kfold :: (a -> b)
|
||||
-> (Incr b -> a)
|
||||
-> Core a
|
||||
-> b
|
||||
kfold var let' seq' lam app unit bool if' string load edge frame dot assign ann k = getConst . gfold (coerce var) (coerce let') (coerce seq') (coerce lam) (coerce app) (coerce unit) (coerce bool) (coerce if') (coerce string) (coerce load) (coerce edge) (coerce frame) (coerce dot) (coerce assign) (coerce ann) (coerce k) . (coerce `asTypeOf` fmap Const)
|
||||
kfold var let' seq' lam app unit bool if' string load edge frame dot assign ann k = getConst . efold (Const . var . getConst) (coerce let') (coerce seq') (coerce lam) (coerce app) (coerce unit) (coerce bool) (coerce if') (coerce string) (coerce load) (coerce edge) (coerce frame) (coerce dot) (coerce assign) (coerce ann) (coerce k) coerce . (coerce `asTypeOf` fmap Const)
|
||||
|
Loading…
Reference in New Issue
Block a user