-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bulat Ziganshin wrote:
anyway file operations best should be split away from base. the only problem is that Handle type used in definition of Exception which is used in definition of IO monad which is used in Prelude (and some Prelude functions need file i/o by itself)
Maybe we will end up having to move Prelude out of base (and all base modules import explicitly what they want; we could have a small prelude for them if there are some things that can only be gotten from the Prelude ( (.), ($), seq... ?), or make real modules that export those.) And there is a long-term plan for fixing Exception to be an extensible single-inheritance hierarchy ... maybe ghc 6.10 ... at which point low-level refactorings will be MUCH more possible (I tried once... Exception was one problem, avoiding orphan instances, another...) Isaac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGh7TFHgcxvIWYTTURAomPAKCxLrNULfBLMWwcWmJRoVqVKiA9/ACaA8vz ZOwtpjK7Zasrvflfwwkq+aM= =H2Uc -----END PGP SIGNATURE-----