Skip to content

Commit

Permalink
Document and motivate Dhall.Deriving
Browse files Browse the repository at this point in the history
  • Loading branch information
akrmn committed Mar 15, 2020
1 parent a622326 commit 888e2ca
Show file tree
Hide file tree
Showing 2 changed files with 334 additions and 24 deletions.
7 changes: 7 additions & 0 deletions dhall/doctest/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ main = do
writeFile "both" "./bool1 && ./bool2"
writeFile "file2" "./file1"
writeFile "file1" "./file2"
writeFile "simon.dhall" $ unlines
[ "let Name = Text"
, "let Font = < Arial | `Comic Sans` | Helvetica | `Times New Roman` >"
, "let Person = { name : Name, favoriteFont : Font }"
, "in { name = \"Simon\", favoriteFont = Font.`Comic Sans` } : Person"
]

Test.DocTest.doctest
[ "-DWITH_HTTP"
Expand All @@ -40,4 +46,5 @@ main = do
, "-i" <> (prefix </> "src")
, prefix </> "src/Dhall/Tags.hs"
, prefix </> "src/Dhall/Tutorial.hs"
, prefix </> "src/Dhall/Deriving.hs"
]
Loading

0 comments on commit 888e2ca

Please sign in to comment.