diff options
author | Yann Herklotz <git@yannherklotz.com> | 2020-03-16 13:12:30 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2020-03-16 13:12:30 +0000 |
commit | 472aedf5daeb1cb0d095a63eacf259b798f56586 (patch) | |
tree | 8e7e32b3ff2d762b90d8b460926adb83408a6263 /src/Verismith/Verilog/Quote.hs | |
parent | 010d7343133ebe53a472b9d26fdeb509db31d4c9 (diff) | |
download | verismith-472aedf5daeb1cb0d095a63eacf259b798f56586.tar.gz verismith-472aedf5daeb1cb0d095a63eacf259b798f56586.zip |
WIP changes to the AST types
Diffstat (limited to 'src/Verismith/Verilog/Quote.hs')
-rw-r--r-- | src/Verismith/Verilog/Quote.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Verismith/Verilog/Quote.hs b/src/Verismith/Verilog/Quote.hs index 879b8fd..5e1e5dc 100644 --- a/src/Verismith/Verilog/Quote.hs +++ b/src/Verismith/Verilog/Quote.hs @@ -23,6 +23,7 @@ import qualified Language.Haskell.TH as TH import Language.Haskell.TH.Quote import Language.Haskell.TH.Syntax import Verismith.Verilog.Parser +import Verismith.Verilog.AST (Verilog) liftDataWithText :: Data a => a -> Q Exp liftDataWithText = dataToExpQ $ fmap liftText . cast @@ -47,4 +48,4 @@ quoteVerilog s = do v <- case parseVerilog pos (T.pack s) of Right e -> return e Left e -> fail $ show e - liftDataWithText v + liftDataWithText (v :: Verilog ()) |