dhall-nix-lib/Number/fromInteger.dhall

8 lines
242 B
Text

λ(nix : ../NixPrelude.dhall) →
let Number = ./Type.dhall
let Any/toAny = ../Any/toAny.dhall nix
let Any/toTypeUnchecked = ../Any/toTypeUnchecked.dhall nix
in λ(n : Integer) → Any/toTypeUnchecked Number (Any/toAny Integer n)