Files
newt/port/TestPrettier.newt
Steve Dunham c665310653 Address issues with unify's case tree in idris
Clean up some stuff in prelude
Add parser for where
2024-11-19 21:35:50 -08:00

21 lines
281 B
Agda

module TestPrettier
import Prettier
five : Nat
five = S (S (S (S (S Z))))
fifty : Nat
fifty = five * five * S (S Z)
doc : Doc
doc = text "x" <+> text "+" <+> text "y"
foo : String
foo = render fifty doc
main : IO Unit
main = do
putStrLn foo
putStrLn $ replicate five 'x'