mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-11-11 14:57:30 +03:00
Allow single constructor types in proof search
This commit is contained in:
parent
65f49450e3
commit
6e7c036b13
@ -203,7 +203,8 @@ proofSearch rec fromProver ambigok deferonfail maxDepth elab fn nroot psnames hi
|
||||
case lookupCtxtExact n (idris_datatypes ist) of
|
||||
Just t -> do
|
||||
let others = hints ++ con_names t ++ autohints
|
||||
when (not fromProver) -- in interactive mode,
|
||||
when (not fromProver && length (con_names t) > 1)
|
||||
-- in interactive mode,
|
||||
-- don't just guess (fine for 'auto',
|
||||
-- since that's part of the point...)
|
||||
$ checkConstructor ist others
|
||||
|
Loading…
Reference in New Issue
Block a user