Re: hasktags - small patch

2007-03-14 Thread Ian Lynagh
On Wed, Feb 21, 2007 at 02:14:10AM +0100, Marc Weber wrote: > > > 154c154 > > > < let wordlines = map words aslines > > > --- > > > > let wordlines = map mywords aslines > > > 161a162,174 > > > > -- my words is mainly copied from Data.List. > > > > -- difference abc::def is

Re: hasktags - small patch

2007-02-23 Thread Claus Reinke
[cc-ed to libraries, as they seem to be more appropriate for cabal topics] Some time ago I've tweaked cabal to start ghci with package options given in the .cabal file. Perhaps it might be useful for someone: yes, i'd like to see something like this in cabal. cf also http://www.mail-archive.

Re: hasktags - small patch

2007-02-23 Thread Claus Reinke
if we're talking interim solutions, also try something like: echo ":ctags" | ghci -v0 Main.hs And some more programming actually gave me that good reason once again: the given ghci command only gives tags for exported definitions. This just plain sucks for any reasonably sized module. :) tru

Re: hasktags - small patch

2007-02-23 Thread Arthur van Leeuwen
On 21-feb-2007, at 16:15, Claus Reinke wrote: Yes, there's Norman Ramsey and Kathleen Fisher's partial hasktags implementation on top of the GHC API: http://hackage.haskell.org/trac/ghc/ticket/946 I think incorporating small fixes to the existing hasktags in the meantime is fine, though. W

Re: hasktags - small patch

2007-02-21 Thread Marc Weber
I didn't knew about :ctags of ghci. Some time ago I've tweaked cabal to start ghci with package options given in the .cabal file. Perhaps it might be useful for someone: module Main where import Distribution.Simple import Distribution.Simple.Configure import Distribution.Simple.LocalBuildInfo i

Re: hasktags - small patch

2007-02-21 Thread Claus Reinke
I meant http://vim-taglist.sourceforge.net/ which provides a neat interface and some extra convenience. It is somewhat dependent on exuberant ctags. thanks for the pointer. it also seems to depend on rerunning ex-ctags on a file every time a buffer on it is opened (possibly also when the file

Re: hasktags - small patch

2007-02-21 Thread Arthur van Leeuwen
On 21-feb-2007, at 20:18, Claus Reinke wrote: The good reason is that you do not actually want to have to specify all the options that you need to get your program to compile, merely to get tag information. To generate the tags for dazzle using ghci I need to use echo ":ctags"| ghci -v0 Main.hs

Re: hasktags - small patch

2007-02-21 Thread Claus Reinke
The good reason is that you do not actually want to have to specify all the options that you need to get your program to compile, merely to get tag information. To generate the tags for dazzle using ghci I need to use echo ":ctags"| ghci -v0 Main.hs -i../lib -i../lib/DData/ -fglasgow-exts -L../

Re: hasktags - small patch

2007-02-21 Thread Claus Reinke
Yes, there's Norman Ramsey and Kathleen Fisher's partial hasktags implementation on top of the GHC API: http://hackage.haskell.org/trac/ghc/ticket/946 I think incorporating small fixes to the existing hasktags in the meantime is fine, though. We're still using it, and it may be a while before

Re: hasktags - small patch

2007-02-21 Thread Simon Marlow
Ian Lynagh wrote: Hi Marc, On Sat, Feb 17, 2007 at 05:12:13AM +0100, Marc Weber wrote: 154c154 < let wordlines = map words aslines --- let wordlines = map mywords aslines 161a162,174 -- my words is mainly copied from Data.List. -- difference abc::def is split into thr

Re: hasktags - small patch

2007-02-21 Thread Jean-Philippe Bernardy
Indeed, Chris Ryder and Simon Thompson claim to have done so in this paper (complete with source code) http://www.cs.kent.ac.uk/pubs/2005/2266/content.pdf Could this replace the "old-style" hasktags? Cheers, JP. On 2/20/07, Ian Lynagh <[EMAIL PROTECTED]> wrote: Better still, of course, if an

Re: hasktags - small patch

2007-02-20 Thread Marc Weber
> > 154c154 > > < let wordlines = map words aslines > > --- > > > let wordlines = map mywords aslines > > 161a162,174 > > > -- my words is mainly copied from Data.List. > > > -- difference abc::def is split into three words instead of one. > > > mywords :: String -> [S

Re: hasktags - small patch

2007-02-20 Thread Ian Lynagh
Hi Marc, On Sat, Feb 17, 2007 at 05:12:13AM +0100, Marc Weber wrote: > > 154c154 > < let wordlines = map words aslines > --- > > let wordlines = map mywords aslines > 161a162,174 > > -- my words is mainly copied from Data.List. > > -- difference abc::def is split into thr

Re: hasktags - small patch

2007-02-18 Thread Lennart Kolmodin
Marc Weber wrote: Without really knowing in which context this function is going to be HaskTags.hs from ghc distribution. Mm, yes. I meant I was to lazy to check which results are appropriate :) K ___ Glasgow-haskell-users mailing list Glasgow-haskel

Re: hasktags - small patch

2007-02-17 Thread Marc Weber
> Without really knowing in which context this function is going to be HaskTags.hs from ghc distribution. Marc ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: hasktags - small patch

2007-02-17 Thread Lennart Kolmodin
Marc Weber wrote: This small patch introduces a now mywords function which recognizes a::b as words a,::,b which is what we need here (?) It does work in the above example. Here is the diff. Is it worth applying? 154c154 < let wordlines = map words aslines --- let wordlines = map

hasktags - small patch

2007-02-16 Thread Marc Weber
While starting to learn more about webfunctions I have noticed that hasktags doesn't recognize rwUserName and rwPasswd in the following code: data LogInController = LogInController {rLoggedIn::R Bool, rwUserName::RWE String, rwPasswd::RWE String} When using spaces it does LogInController {rL