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

2009-01-28 Thread Claus Reinke
manually when debugging. Most of my expriments are related to the tickets I filled in: checking whether I can have some cheap workarourd till they are implemented or whether they actually help as much as I hope. That means that for anything more complicated I need access directly to the

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

2009-01-28 Thread Peter Hercek
Claus Reinke wrote: ghci-haskeline This package reimplements ghci using the GHC API and the Haskeline package for line input in command-line programs. Just a copymodify of some of the GHCi sources, including a Main.hs to call the modified code. Thanks for the information. Ok, from the

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

how can I run ghci monad actions from ghci command line

2009-01-15 Thread Peter Hercek
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). Peter.