Skip to content

Commit

Permalink
changed layout benches to print the blogs in a way that's independent…
Browse files Browse the repository at this point in the history
… of internal type names
  • Loading branch information
0xtimmy committed Feb 21, 2024
1 parent 6062341 commit c6b38d2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5,337 deletions.
2 changes: 2 additions & 0 deletions gibbon-compiler/examples/layout_bench/Basics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ printID id = case id of

printBlog :: Blog -> ()
printBlog blog = case blog of
End -> let _ = printsym (quote "Fin")
in ()
Layout1 header id author date content tags rst -> let _ = printsym (quote "Layout1 ")
_ = printHeader header
_ = printID id
Expand Down
2 changes: 1 addition & 1 deletion gibbon-compiler/examples/layout_bench/manyFuncs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ gibbon_main =
newblgs = emphKeywordInContent keyword blogs
newblgs' = emphKeywordInTag keyword newblgs
newblgs'' = filterByKeywordInTagList keyword newblgs'
in printPacked newblgs''
in printBlog newblgs''
Loading

0 comments on commit c6b38d2

Please sign in to comment.