dhall-nix-lib/Function/fix.dhall

13 lines
231 B
Text
Raw Normal View History

2022-09-09 07:23:27 +00:00
λ(nix : ../NixPrelude.dhall) →
2022-09-09 08:07:20 +00:00
let Set = ../Set/Type.dhall
2022-09-09 07:23:27 +00:00
let fix
: ∀(t : Type) → (t → t) → t
2022-09-09 08:07:20 +00:00
= nix.primops.fix
2022-09-09 07:23:27 +00:00
let fixp
2022-09-09 08:07:20 +00:00
: (Set → Set) → Set
= nix.primops.`fix'`
2022-09-09 07:23:27 +00:00
in { fix, fixp }