mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
partial evaluator: prettier complaint about nonlinears patterns
This commit is contained in:
@@ -329,7 +329,8 @@ valueTable env i cs =
|
||||
pvs = nub allpvs
|
||||
dups = allpvs \\ pvs
|
||||
unless (null dups) $
|
||||
fail $ "Pattern is not linear: "++show p'
|
||||
fail.render $ hang (text "Pattern is not linear:") 4
|
||||
(ppPatt Unqualified 0 p')
|
||||
vt <- value (extend pvs env) t
|
||||
return (p', \ vs -> Bind $ \ bs -> vt (push' p' bs pvs vs))
|
||||
--{-
|
||||
|
||||
Reference in New Issue
Block a user