dhall-nix-lib/Misc/throw.dhall

7 lines
207 B
Text
Raw Normal View History

2022-08-31 14:59:38 +00:00
λ(nix : ../NixPrelude.dhall) →
let Any/toTypeUnchecked = ../Any/toTypeUnchecked.dhall nix
in λ(t : Type) →
λ(message : Text) →
Any/toTypeUnchecked t (nix.builtins.throw message)