mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-23 20:22:34 +03:00
Implement Debug.Trace, from Idris 1's base package
This commit is contained in:
parent
ab98b4d3c9
commit
0fb873949f
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.Vect,
|
||||
|
||||
Debug.Trace,
|
||||
|
||||
Decidable.Equality,
|
||||
|
||||
Language.Reflection,
|
||||
|
Loading…
Reference in New Issue
Block a user