mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2025-01-04 10:45:11 +03:00
Merge pull request #144 from sysvinit/debug-trace
Port Debug.Trace from Idris 1
This commit is contained in:
commit
078b5be85f
8
libs/base/Debug/Trace.idr
Normal file
8
libs/base/Debug/Trace.idr
Normal 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)
|
@ -22,6 +22,8 @@ modules = Control.Monad.Identity,
|
|||||||
Data.Strings,
|
Data.Strings,
|
||||||
Data.Vect,
|
Data.Vect,
|
||||||
|
|
||||||
|
Debug.Trace,
|
||||||
|
|
||||||
Decidable.Equality,
|
Decidable.Equality,
|
||||||
|
|
||||||
Language.Reflection,
|
Language.Reflection,
|
||||||
|
Loading…
Reference in New Issue
Block a user