1
1
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:
Rob Rix 2019-06-28 12:58:56 -04:00
parent 88ab103a23
commit bc2c536822
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

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