- Call whatever programs needed for preparing the package for building
- Un-define the command so that the default behavior returns
- Call the default command
- Respecify the custom implementation
- Redefine the command
Tuesday, June 14, 2011
Almost a Quine
To allow reloading from GHCi to trigger all the necessary Cabal preparation, I need to define macros to shadow the default commands (:r, :l, etc) . The basic idea for each of these macros is pretty simple:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment