1
1
mirror of https://github.com/idris-lang/Idris2.git synced 2024-12-25 04:33:45 +03:00
Idris2/tests/idris2/interface025/AutoSearchHide2.idr
Ruslan Feizerahmanov 50c60185a7
[ auto ] Ignore hidden names in Core.Context.getSearchData ()
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-03-09 14:13:29 +00:00

23 lines
422 B
Idris

module AutoSearchHide2
import AutoSearchHide1
myZero : Value === 0
myZero = Refl
[OneA] A where
Value = 1
%hint
HintOneA : A
HintOneA = OneA
-- Want to use the OneA (via HintOneA) instance here.
-- `%hide` should block the auto-search from
-- including the `HintZeroA` hint into the list of solutions.
-- Thus, we don't get into the `multiple solutions` situation.
%hide HintZeroA
myOne : Value === 1
myOne = Refl