how can I run ghci monad actions from ghci command line
marlowsd at gmail.com
Mon Jan 26 11:49:52 EST 2009
Peter Hercek wrote:
> Is it possible to run ghci monad actions from ghci command line somehow?
> For example: I would like to check whether "it" variable is of type Bool
> and whether it is True using normal Haskell code (i.e. not using ghci
> commands starting with colon like :type :print).
There's no way to do that right now, although you can play tricks with
:define to pipe the output of GHCi commands into Haskell code. Look up
Claus Reinke's example macros - they're on one of the wikis somewhere, but
I don't seem to be able to find them with Google right now.
More information about the Glasgow-haskell-users