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 } ```
18 lines
332 B
Haskell
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
|