summaryrefslogtreecommitdiff
path: root/dhall/tests/type-inference/failure/unit/MergeHandlerNotFunction.txt
blob: 83f1b905bc7d5ad4b30526e453cbfddd8f782e15 (plain)
1
2
3
4
5
6
7
8
9
Type error: error: merge handler is not a function
 --> <current file>:1:1
  |
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`