aboutsummaryrefslogtreecommitdiff
path: root/plugins/extraction/haskell.ml
diff options
context:
space:
mode:
authorletouzey2012-10-30 14:16:06 +0000
committerletouzey2012-10-30 14:16:06 +0000
commita14e4c0670eda14686a6fcf24b909f9fc3e1e3d3 (patch)
tree893b2e601fd9b1f04ae17e3d79c69eff91213b42 /plugins/extraction/haskell.ml
parent6cd21c58557309919083610caff4a0b65a5c041f (diff)
Extraction: avoid initial strange empty comments after Arnaud's hack
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15942 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/extraction/haskell.ml')
-rw-r--r--plugins/extraction/haskell.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/extraction/haskell.ml b/plugins/extraction/haskell.ml
index 33da06f015..5de13e53c2 100644
--- a/plugins/extraction/haskell.ml
+++ b/plugins/extraction/haskell.ml
@@ -44,7 +44,9 @@ let preamble mod_name comment used_modules usf =
str "{- For Hugs, use the option -F\"cpp -P -traditional\" -}")
++ fnl () ++ fnl ()
++
- pp_bracket_comment comment ++ fnl () ++ fnl ()
+ (match comment with
+ | None -> mt ()
+ | Some com -> pp_bracket_comment com ++ fnl () ++ fnl ())
++
str "module " ++ pr_upper_id mod_name ++ str " where" ++ fnl2 () ++
str "import qualified Prelude" ++ fnl () ++
@@ -358,7 +360,7 @@ let haskell_descr = {
preamble = preamble;
pp_struct = pp_struct;
sig_suffix = None;
- sig_preamble = (fun _ s _ _ -> (pp_bracket_comment s)++fnl());
+ sig_preamble = (fun _ _ _ _ -> mt ());
pp_sig = (fun _ -> mt ());
pp_decl = pp_decl;
}