Re: how can I run ghci monad actions from ghci command line

2009-01-26 Thread Simon Marlow
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

Re: how can I run ghci monad actions from ghci command line

2009-01-26 Thread Peter Hercek
Simon Marlow wrote: 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

Re: how can I run ghci monad actions from ghci command line

2009-01-26 Thread Claus Reinke
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). What I was searching for in

Re: how can I run ghci monad actions from ghci command line

2009-01-26 Thread Peter Hercek
Claus Reinke wrote: If the necessary functionality is not yet exposed through the API, it probably should be (iirc, GHCi's frontend itself isn't part of the API, but the functionality used by it is, so GHCi is just one of several GHC API clients; don't know how far the debugger features you are