dhall-nix-lib/Misc/throw.dhall
2022-08-31 15:59:38 +01:00

6 lines
207 B
Text

λ(nix : ../NixPrelude.dhall) →
let Any/toTypeUnchecked = ../Any/toTypeUnchecked.dhall nix
in λ(t : Type) →
λ(message : Text) →
Any/toTypeUnchecked t (nix.builtins.throw message)