1
1
mirror of https://github.com/idris-lang/Idris2.git synced 2024-12-25 12:42:02 +03:00
Idris2/tests/idris2/interactive035/unify.idr
Edwin Brady 4ef29da87e Fix expression search on already solved holes
If it's solved by unification, expression search should just print the
unified value. In fact it almost did this, but wasn't reducing the holes
so the result was being rendered incorrectly.
2021-06-23 00:59:26 +01:00

8 lines
167 B
Idris

import Data.Vect
data VectN : Type -> Type where
MkVectN : (n : Nat) -> Vect n a -> VectN a
doSearch : Nat -> VectN Int
doSearch n = MkVectN ?vlength [1,2,3,4]