dhall-haskell/tests/Tests.hs
Gabriel Gonzalez c15eebf935 Add support for string interpolation. Fixes #47 (#60)
You can now interpolate any expression of type `Text` into a string literal,
like this:

```haskell
let renderRating
    =   λ(rating : { name : Text, rating : Natural })
    →   let score = Integer/show (Natural/toInteger rating.rating)
    in  ''
        # My thoughts about ${rating.name} (${score} out of 5)
        ''
in  renderRating { name = "Dhall", rating = +6 }
```
2017-05-22 10:40:07 -07:00

18 lines
332 B
Haskell

module Main where
import Normalization (normalizationTests)
import Examples (exampleTests)
import Tutorial (tutorialTests)
import Test.Tasty
allTests :: TestTree
allTests =
testGroup "Dhall Tests"
[ normalizationTests
, exampleTests
, tutorialTests
]
main :: IO ()
main = defaultMain allTests