diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-12-23 12:03:20 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-12-23 12:03:20 +0000 |
commit | 23abbde989d2809ef2b87f30ce16f58c54f175de (patch) | |
tree | 5b6c912b55120d90ffbe8cd7bd8d2e9331392207 /app | |
parent | 434c2828ab622c4b9d07a1f1a8a09ede0696f4e0 (diff) | |
download | verismith-23abbde989d2809ef2b87f30ce16f58c54f175de.tar.gz verismith-23abbde989d2809ef2b87f30ce16f58c54f175de.zip |
Add nesting to the SourceText
Diffstat (limited to 'app')
-rw-r--r-- | app/Main.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Main.hs b/app/Main.hs index bb2697a..cbe570b 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE OverloadedStrings #-} + module Main where import qualified Data.Graph.Inductive as G @@ -18,4 +20,4 @@ main = do -- _ <- runGraphviz (graphToDot quickParams $ emap (const "") gr) Png "output.png", -- T.putStrLn $ generate gr --g <- QC.generate (QC.arbitrary :: QC.Gen SourceText) - render . genSourceText . generateAST $ Circuit gr + render . genSourceText . nestSource (Identifier "w96") . generateAST $ Circuit gr |