Idris2/tests/idris2/basic069/DebugInfo.idr
G. Allais 0194539ef7
[ new ] __LOC__, __FILE__, __LINE__, __COL__ magic debug strings (#2819)
* [ new ] __LOC__, __FILE__, __LINE__, __COL__ magic debug strings

* [ fix ] the point is to test whitespace being ignored

* [ fix ] golden values
2022-12-17 18:12:39 +00:00

20 lines
243 B
Idris

main : IO ()
main = do
putStrLn "loc: \{__LOC__}"
putStrLn "file: \{__FILE__}"
putStrLn "line: \{__LINE__}"
putStrLn "col: \{__COL__}"
putStrLn
"""
loc further down the file: \{
__LOC__}
"""