From 8abb6c24cd26b64d708a74faaa28cc9294dc3466 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 9 Feb 2020 17:47:58 +0000 Subject: Move ui outputs to a sensible place --- .../type-inference/failure/unit/MergeHandlerNotFunction.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dhall/tests/type-inference/failure/unit/MergeHandlerNotFunction.txt (limited to 'dhall/tests/type-inference/failure/unit/MergeHandlerNotFunction.txt') diff --git a/dhall/tests/type-inference/failure/unit/MergeHandlerNotFunction.txt b/dhall/tests/type-inference/failure/unit/MergeHandlerNotFunction.txt new file mode 100644 index 0000000..8528f90 --- /dev/null +++ b/dhall/tests/type-inference/failure/unit/MergeHandlerNotFunction.txt @@ -0,0 +1,9 @@ +Type error: error: merge handler is not a function + --> :1:0 + | +1 | merge { x = True } (< x : Bool >.x True) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in this merge expression + | ^^^^^^^^^^^^ the handler for `x` has type: `Bool` + | ------------------- help: the corresponding variant has type: `Bool` + | + = help: a handler for this variant must be a function that takes an input of type: `Bool` -- cgit v1.2.3