aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2019-10-25 17:03:51 +0100
committerYann Herklotz <git@yannherklotz.com>2019-10-25 17:03:51 +0100
commit74d659752eb082371da88abacb9fc4164ca5b931 (patch)
tree491d3390c250587ab362f876cea62470e917b8dc
parenta33c485f49a445d51f7ff5857d081dc0e093f181 (diff)
downloadverismith-74d659752eb082371da88abacb9fc4164ca5b931.tar.gz
verismith-74d659752eb082371da88abacb9fc4164ca5b931.zip
Add comment to code generation
-rw-r--r--src/Verismith/Verilog/CodeGen.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Verismith/Verilog/CodeGen.hs b/src/Verismith/Verilog/CodeGen.hs
index ca48a33..842394d 100644
--- a/src/Verismith/Verilog/CodeGen.hs
+++ b/src/Verismith/Verilog/CodeGen.hs
@@ -45,7 +45,7 @@ defMap = maybe semi statement
-- | Convert the 'Verilog' type to 'Text' so that it can be rendered.
verilogSrc :: Verilog -> Doc a
-verilogSrc (Verilog modules) = vsep . punctuate line $ moduleDecl <$> modules
+verilogSrc (Verilog modules) = vsep . ("// -*- mode: verilog -*-" :) . punctuate line $ moduleDecl <$> modules
-- | Generate the 'ModDecl' for a module and convert it to 'Text'.
moduleDecl :: ModDecl -> Doc a