Merge pull request #144 from sysvinit/debug-trace

Port Debug.Trace from Idris 1
This commit is contained in:
Edwin Brady 2019-12-06 10:38:28 +00:00 committed by GitHub
commit 078b5be85f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,8 @@
module Debug.Trace
import Prelude
import PrimIO
export
trace : (msg : String) -> (result : a) -> a
trace x val = unsafePerformIO (do putStrLn x; pure val)

View File

@ -22,6 +22,8 @@ modules = Control.Monad.Identity,
Data.Strings,
Data.Vect,
Debug.Trace,
Decidable.Equality,
Language.Reflection,