RE: ghci: catching up with hugs?-)

2004-08-09 Thread Simon Marlow
On 29 July 2004 17:48, Claus Reinke wrote:

 - especially when working with gui libs, I often find myself wanting
 to know which instances some type belongs to (as that determines
 the attributes/properties/etc one may use with that type).

Absolutely.  This is on my ToDo list, but I haven't got around to it
yet.  

 - since ghc now keeps better source location info, how about :find
 name? 

Yes, another good suggestion.  I don't have the time to tackle these
right now, but they're good small projects for anyone looking for
something to contribute to GHC.

 - the :set something command in ghci feeds the ghc command
 line, but how can I figure out the current settings (especially
 paths and packages)? 

This is really a bug - and it's another thing that's been lurking on my
ToDo list for a long time.

Cheers,
Simon
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ghci: catching up with hugs?-)

2004-07-29 Thread Shae Matijs Erisson
Claus Reinke [EMAIL PROTECTED] writes:

 - since ghc now keeps better source location info, how about :find name?

There's a simplistic @index command in lambdabot. All it does is load all the
'name.haddock' binary interface dumps and stick the names into a FiniteMap for
later lookup. It's a popular lambdabot command on the #haskell irc channel.
lambdabot also has @info that calls ghci's :info command.
I would very much like to see instance information in ghci.
I haven't figured out a good way to do searching by type signature though, any
suggestions?

Also seems like integrating haddock and haskell-mode's haskell-doc should be
pretty easy, I'll do that at some point if no one else has.

Any other interesting dev-environment ideas/suggestions floating around?
-- 
Shae Matijs Erisson - Programmer - http://www.ScannedInAvian.org/
I will, as we say in rock 'n' roll, run until the wheels come off, 
because I love what I do. -- David Crosby

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ghci: catching up with hugs?-)

2004-07-29 Thread Serge D. Mechveliani
I also would like to have the info on clases and instances in the
:info  interactive command.

-
Serge Mechveliani
[EMAIL PROTECTED]


On Thu, Jul 29, 2004 at 05:48:26PM +0100, Claus Reinke wrote:

 [..]
 
 in hugs, a simple :info type gives me the answer:
 
 Prelude :info Bool
 -- type constructor
 data Bool
 
 -- constructors:
 False :: Bool
 True :: Bool
 
 -- instances:
 instance Eq Bool
 instance Ord Bool
 instance Ix Bool
 instance Enum Bool
 instance Read Bool
 instance Show Bool
 instance Bounded Bool
 
 in fact, I can even ask by class, using :info class:
 
 Prelude :i Enum
 -- type class
 class Enum a where
   succ :: a - a
   pred :: a - a
   toEnum :: Int - a
   fromEnum :: a - Int
   enumFrom :: a - [a]
   enumFromThen :: a - a - [a]
   enumFromTo :: a - a - [a]
   enumFromThenTo :: a - a - a - [a]
 
 -- instances:
 instance Enum ()
 instance Enum Char
 instance Enum Int
 instance Enum Integer
 instance Enum Float
 instance Enum Double
 instance Integral a = Enum (Ratio a)
 instance Enum Bool
 instance Enum Ordering
 
 [..]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users