reset password
Author Message
ejaan
Posts: 27
Posted 17:36 Nov 05, 2016 |

Hello Professor Abbott : )

-- The following exports everything except the Change type. 
-- That could be done more easily by leaving out the export list!
module History ( History(..), applyAChange, Change, redo, ToString, undo ) where

 

Why the Change type is not exported !

That could be done more easily by leaving out the export list!  I did not get that could you please explain it more : )

 

Thank you 

Last edited by ejaan at 17:37 Nov 05, 2016.
rabbott
Posts: 1649
Posted 19:31 Nov 05, 2016 |

In the current version of the code the Change type is exported also. Not exporting it was a mistake.

If you leave out the export list, everything is exported by default.

ejaan
Posts: 27
Posted 20:30 Nov 05, 2016 |

Why is the ToString not exporting ? 

 

Thank you, professor, for your help and time 

Last edited by ejaan at 20:31 Nov 05, 2016.
rabbott
Posts: 1649
Posted 21:52 Nov 05, 2016 |

It is.  In the current version the module line looks like this.

module History ( History(..), applyAChange, Change, redo, ToString, undo ) where