Skip to content

Commit

Permalink
Fix wrong definition of tfix, the type level fixpoint operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
skaller committed Sep 2, 2022
1 parent 69cb6f6 commit 6717d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/control.fdoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ open class Control
fun fix[D,C] (f:(D->C)->D->C) (x:D) : C => f (fix f) x;

// for functors TYPE->K only, the K *must* be specified
typefun tfix<K> (f: TYPE->K):K => f x as x:K;
typefun tfix<K> (f: K ->K):K => f x as x:K;


/* Example use: factorial function
Expand Down

0 comments on commit 6717d02

Please sign in to comment.