Created
August 11, 2018 04:52
-
-
Save brunoczim/fd3f857575aa500bea6ba8e31e994d1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Failure where | |
data Bool : Set where | |
false : Bool | |
true : Bool | |
if_then_else_ : {A B : Set} → (x : Bool) → A → B → (λ {true → A ; false → B}) x | |
if true then x else _ = x | |
if false then _ else x = x | |
{- | |
You need to fix the following errors before you can compile | |
the module: | |
Failed to solve the following constraints: | |
_15 := λ {.A} {.B} .x x → x [blocked on problem 11] | |
[11] .B =< _12 false : Set | |
Set = _6 false | |
_13 := λ {.A} {.B} x .x → x [blocked on problem 8] | |
[8] .A =< _12 true : Set | |
Set = _6 true | |
_11 := (_ : _8 x) [x] :? _6 x | |
_9 := λ { true → A ; false → B } :? _8 x | |
-} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment