Skip to content

Instantly share code, notes, and snippets.

@msmorgan
Created August 29, 2017 22:01
Show Gist options
  • Save msmorgan/c9806ab5840f1da6913c7e2c6130e943 to your computer and use it in GitHub Desktop.
Save msmorgan/c9806ab5840f1da6913c7e2c6130e943 to your computer and use it in GitHub Desktop.
Searching for the exact apparent type of `replace` yields no results
Idris> :consolewidth infinite
Idris> :type replace
replace : {a : Type} -> {x : a} -> {y : a} -> {P : a -> Type} -> ((=) {A = a} {B = a} x y) -> P x -> P y
Idris> :type ({a : Type} -> {x, y : a} -> {P : a -> Type} -> x = y -> P x -> P y)
{a : Type} -> {x : a} -> {y : a} -> {P : a -> Type} -> ((=) {A = a} {B = a} x y) -> P x -> P y : Type
Idris> :search ({a : Type} -> {x, y : a} -> {P : a -> Type} -> x = y -> P x -> P y)
No results found
Idris>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment