diff options
| author | Pierre-Marie Pédrot | 2015-12-17 14:05:49 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2015-12-17 14:05:49 +0100 |
| commit | d83e8aceaca972f8997f208e46d257e69c2e352d (patch) | |
| tree | d5efe63774ddc8c134b7e50748f15a77e870f133 /plugins/extraction/haskell.ml | |
| parent | f24543a02db80e2c4ab3065564fabb9b7d485a2f (diff) | |
| parent | 04394d4f17bff1739930ddca5d31cb9bb031078b (diff) | |
Merge branch 'v8.5'
Diffstat (limited to 'plugins/extraction/haskell.ml')
| -rw-r--r-- | plugins/extraction/haskell.ml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/extraction/haskell.ml b/plugins/extraction/haskell.ml index 00259750d6..da7a4265e6 100644 --- a/plugins/extraction/haskell.ml +++ b/plugins/extraction/haskell.ml @@ -143,7 +143,11 @@ let rec pp_expr par env args = and apply2 st = pp_apply2 st par args in function | MLrel n -> - let id = get_db_name n env in apply (pr_id id) + let id = get_db_name n env in + (* Try to survive to the occurrence of a Dummy rel. + TODO: we should get rid of this hack (cf. #592) *) + let id = if Id.equal id dummy_name then Id.of_string "__" else id in + apply (pr_id id) | MLapp (f,args') -> let stl = List.map (pp_expr true env []) args' in pp_expr par env (stl @ args) f |
