diff options
| author | letouzey | 2011-04-15 16:09:04 +0000 |
|---|---|---|
| committer | letouzey | 2011-04-15 16:09:04 +0000 |
| commit | 18214ca9f822ed39bb5ecf48f27f119508b97d28 (patch) | |
| tree | f227040a4d4506a2ed386dfd35ab9dec0628f360 /plugins/extraction/haskell.ml | |
| parent | 0fa64b47f270f9d31d32d499c0f9f8c23f370124 (diff) | |
Extraction: allow extracting Ascii.ascii to native Char in Haskell (fix #2515)
We simply factorize code that was already existing for Ocaml.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14011 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/extraction/haskell.ml')
| -rw-r--r-- | plugins/extraction/haskell.ml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/extraction/haskell.ml b/plugins/extraction/haskell.ml index ef8a1f9b46..ffb3baf4ac 100644 --- a/plugins/extraction/haskell.ml +++ b/plugins/extraction/haskell.ml @@ -137,6 +137,7 @@ let rec pp_expr par env args = spc () ++ hov 0 pp_a2))) | MLglob r -> apply (pp_global Term r) + | MLcons _ as c when is_native_char c -> assert (args=[]); pp_native_char c | MLcons (_,r,[]) -> assert (args=[]); pp_global Cons r | MLcons (_,r,[a]) -> |
