aboutsummaryrefslogtreecommitdiffstats
path: root/src/VeriFuzz/Verilog/Quote.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/VeriFuzz/Verilog/Quote.hs')
-rw-r--r--src/VeriFuzz/Verilog/Quote.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VeriFuzz/Verilog/Quote.hs b/src/VeriFuzz/Verilog/Quote.hs
index 1450f5e..b252af2 100644
--- a/src/VeriFuzz/Verilog/Quote.hs
+++ b/src/VeriFuzz/Verilog/Quote.hs
@@ -42,8 +42,8 @@ verilog = QuasiQuoter { quoteExp = quoteVerilog
quoteVerilog :: String -> TH.Q TH.Exp
quoteVerilog s = do
loc <- TH.location
- let pos = TH.loc_filename loc
- v <- case parseVerilog pos s of
+ let pos = T.pack $ TH.loc_filename loc
+ v <- case parseVerilog pos (T.pack s) of
Right e -> return e
Left e -> fail $ show e
liftDataWithText v