Skip to content
  • mnislaih's avatar
    Teach :print to follow references (STRefs and IORefs) · f4d6209d
    mnislaih authored
    Prelude Data.IORef> :p l
    l = (_t4::Maybe Integer) : (_t5::[Maybe Integer])
    Prelude Data.IORef> p <- newIORef l
    Prelude Data.IORef> :p p
    p = GHC.IOBase.IORef (GHC.STRef.STRef {((_t6::Maybe Integer) :
                                            (_t7::[Maybe Integer]))})
    Prelude Data.IORef> :sp p
    p = GHC.IOBase.IORef (GHC.STRef.STRef {(_ : _)})
    
    
    I used braces to denote the contents of a reference.
    Perhaps there is a more appropriate notation?
    f4d6209d