Re: Alternative (per-project) GHC package database?

2010-06-29 Thread Marc Weber
. Get in touch if you want to see a demo. You can find more info and links on the haskell wiki. Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Advice on Multiple GHC installations

2010-04-12 Thread Marc Weber
hunting, etc. Have a look at hack-nix. However only recent ghcs are supported well. This means you have to install the Nix package manager. (- www.nixos.org). http://github.com/MarcWeber/hack-nix Marc Weber ___ Glasgow-haskell-users mailing list Glasgow

Re: Using the ghc-api to run more than one instance of ghc simultaneously

2009-07-13 Thread Marc Weber
. This is the problem you ran into. There's no workaround that I'm aware of. Are there already bug tracker items for these two problems? I've tried finding them but didn't succeed. This would be a fast way to document this issue even if its unlikely to be fixed soon. Marc Weber

Re: Using the ghc-api to run more than one instance of ghc simultaneously

2009-07-12 Thread Marc Weber
to some global state IORefs or such. But I'd appreciate hearing that this changed recently. My knowledge can be outdated. Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo

Making ghc utilize multiple cpus ?

2008-11-09 Thread Marc Weber
this. But restarting ghc multiple times wastes resources.. Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Build system idea, what about a magic knowledge / refactoring database?

2008-08-30 Thread Marc Weber
of one day. Of course this applies not only to haskell systems.. Hopefully it will not result in breakages occur more often because they will become cheaper? What do you think? Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell

Re: Version control systems

2008-08-21 Thread Marc Weber
clone does (?) (Don't ask me why) maybe git show commit-id:file is of interest as well (you told about git show) Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo

Re: Version control systems - no need to fear git

2008-08-21 Thread Marc Weber
hashes to a temp file etc.. If you just start gitk it will keep all hashes in memory.. so you can recover from those as well (unless using the update menu item or running the garbage collector) Sincerly Marc Weber ___ Glasgow-haskell-users mailing list

Re: Version control systems

2008-08-21 Thread Marc Weber
Using merge you also get a more accurate reflection of the project history, i.e. you can see that the two branches were being developed independently. Timestamps will be preserved so not all information is lost.. Marc ___ Glasgow-haskell-users

Re: Version control systems

2008-08-21 Thread Marc Weber
or merge depending on your settings (AFAIK) So if you have an active project you end up having dozens of remote branches but only some heads you are working on or you want to backup (in case someone else rewrits history or such) HTH Marc Weber ___ Glasgow

Re: Version control systems

2008-08-21 Thread Marc Weber
..) Why do you want to switch for a minute? There are tools such as gitk/ qgit letting you browse the repository (and all file contents) without switching. I don't think that recompilation is a real issue. Marc Weber ___ Glasgow-haskell-users mailing list

somewhat OT: maybe useful git script git-test-merge

2008-08-07 Thread Marc Weber
remembers conflict resolutions automatically. It works best on orthogonal branches of course :) Read about Linus complaint in man git-rerere to find out why I've written this script Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell

Re: Implicit Function Arguments

2008-06-29 Thread Marc Weber
On Sat, Jun 28, 2008 at 01:00:17PM -0400, Brandon S. Allbery KF8NH wrote: On 2008 Jun 28, at 12:32, Tyson Whitehead wrote: What do people think about implicit function argument? http://www.haskell.org/ghc/docs/latest/html/users_guide/other-type-extensions.html#implicit-parameters

Re: ANNOUNCE: GHC 6.8.3 Release Candidate

2008-05-29 Thread Marc Weber
for bootstrapping than ghc-6.4. Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Haskell-src-ext

2008-04-14 Thread Marc Weber
to add some import statements? Or do you suggest hacking my own fuzzy approach? Is it easy to explain the main difference between your output and the output produced by the GHC parser? Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow

Re: GHC API (parsing)

2008-04-14 Thread Marc Weber
GHC API should preserve and provide access to comments http://hackage.haskell.org/trac/ghc/ticket/1886 What does this lead to? Introspection? So you can get haddock comments from ghci? This would be interesting Marc Weber ___ Glasgow-haskell-users

ghci: can't load module BitSet, and some others

2008-04-13 Thread Marc Weber
Hi. I'm totally puzzled: ghc-pkg describe ghc shows BitSet as exposed module. When grepping the whole ghc source code the only occurance I can find is in the package.in file for the ghc package. But that't it Trying to load it using GHC-api or ghci fails ? Is this module depreceated and only

Re: ghci: can't load module BitSet, and some others

2008-04-13 Thread Marc Weber
: Java JavaGen PrintJava Does anyone know? Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Scripting an application in haskell: howto expose application api ?

2008-03-24 Thread Marc Weber
of pipe sending events/ commands replies..) But maybe you can think of someting easier ? Sincerly Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: slightly modified hasktags version (now supports kinds)

2008-02-17 Thread Marc Weber
Hi Ian, thanks for your feedback. I should have taken more care. change line 198 let (tokenLines :: [[Token]]) = to let tokenLines May I ask you to (amend-)record it? I don't mind wether darcs lists me as author of this tiny minor fix. Or is it easier for you to apply another

Re: slightly modified hasktags version (now supports kinds)

2008-02-16 Thread Marc Weber
Now there is http://mawercer.de/hasktags_patch3 (fixed exhausted pattern match when processing literate haskell files) No aborts while tagging the core libraries, some extra libraries and HAppS libs. (45 packages tested) ___ Glasgow-haskell-users

Re: slightly modified hasktags version (now supports kinds)

2008-02-15 Thread Marc Weber
Hi Simon, thanks for pointing me to the ticket (therby telling me that hasktags was not really usable before ?). The ticket can be marked as fixed now I hope. I've tried enhancing it but I don't know wether it still finds everyting in all cases. So more testing is needed. I've included a small

slightly modified hasktags version / Who can commit it?

2008-02-12 Thread Marc Weber
I've hacked on hasktags again http://mawercer.de/hasktags.hs I'd like to merge changes into the ghc distribution or ask someone to do so. changes: a) full qualified module names are added as well now b) hack: removed empty tokens so that getcons finds [..] rqBody::

Jumping to code every and anywhere: What about installing source and a tagfile?

2008-01-13 Thread Marc Weber
See http://hackage.haskell.org/trac/hackage/ticket/207 Discussion takes place on haskell-cafe Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Display problem with ghci (:e) and vim

2007-08-10 Thread Marc Weber
Hello! I've noticed an odd display problem with ghci and vim. The problem occurs with ghci-6.6 and vim-6 on Mac OS X 10.4.9 (Terminal.app and uxrvt in X11.app) and with ghci-6.2.2, ghci-6.6.1 and vim-7.0 on OpenBSD 4.1 (via PuTTY from Windows). 1 - Resize your terminal window to 40

ghc-pkg: can't unregister - not found - describe works?

2007-07-21 Thread Marc Weber
[EMAIL PROTECTED] /pr/source/wxh/wxhaskell-0.9.4 $ ghc-pkg-wrapper-6.6.1 unregister wx ghc-pkg: cannot find package wx [EMAIL PROTECTED] /pr/source/wxh/wxhaskell-0.9.4 $ ghc-pkg-wrapper-6.6.1 describe wx name: wx version: 0.10.1 license: AllRightsReserved [...] What does happen here?

Template Haskell [d| .. trouble

2007-06-16 Thread Marc Weber
GHC.Err.undefined) (ForallT [d_1] [] (VarT d_1))) [ *ABC Language.Haskell.TH Now (ForallT [d_1] [] (VarT d_1) should be (ForallT [] [] (VarT d_1) shouldn't it? Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Re: Feature proposal: ghc --full-flag-help ?

2007-03-14 Thread Marc Weber
On Wed, Mar 14, 2007 at 11:18:20AM +, Simon Marlow wrote: We already have support for man pages, I think we should try to avoid duplication here. If your GHC man page is installed correctly, then 'man ghc' should give you a nice consise list of options (see attached file, and scripts

Feature proposal: ghc --full-flag-help ?

2007-03-13 Thread Marc Weber
Hi I did notice a lot of times that I just didn't remember the name of option X. How to look it up? Walk through html or pdf documentation? This forces me launching either firefox, entering shortcut odocghc (pointing to ghc help) ... HTML help ... flag reference .. which subtopic to look at?

documentation of -M option insufficient

2007-03-13 Thread Marc Weber
The description of the -M option looks like this: -M Generate dependency information suitable for use in a Makefile. (copied from http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html#id3152912) It should contain the hint that it writes this information to a Makefile. I'm

Re: documentation of -M option insufficient

2007-03-13 Thread Marc Weber
On Tue, Mar 13, 2007 at 02:37:09PM +0100, Marc Weber wrote: The description of the -M option looks like this: -M Generate dependency information suitable for use in a Makefile. (copied from http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html#id3152912) It should

Re: Feature proposal: ghc --full-flag-help ?

2007-03-13 Thread Marc Weber
On Tue, Mar 13, 2007 at 01:57:10PM +0100, Marc Weber wrote: Hi I did notice a lot of times that I just didn't remember the name of option X. How to look it up? Walk through html or pdf documentation? Just printing a link to ghc online docs is not enough because: * maybe no internet

Query information about installed modules user or system only?

2007-03-03 Thread Marc Weber
Is there a way to ask ghc-pkg to list all availible packages found in the user lib or system lib or lib given by path? If I have read the documentation corretly it says: no. Is there any reason for this restriction? Can I query ghc-pkg to list pgk-config files (user/ system)? mfg Marc

Registering source files along with .hi and .a files?

2007-03-02 Thread Marc Weber
by DrIft. They can be used as reference as well (I think many haskell programmers dive into source when looking at some library features ? At least I do) Or is there already an option to register arbitrary files along with a package? Marc Weber ___ Glasgow

Re: -fallow-incoherent-instances not working

2007-02-22 Thread Marc Weber
l1 = 2 .*. 3 .*. abc .*. (Just 4) .*. HNil hlistTest = do print $ 2 .*. HNil print $ (hOccursMany l1 :: [Maybe Int]) [EMAIL PROTECTED] /pr/haskell/test/HList $ I should have used HCons instead of .*. which is bound to HExtend. (but also to HCons in another module) ... Then it compiles

Re: status of GreenCard support

2007-02-22 Thread Marc Weber
some simple fix that would make code generated by GreenCard work, or is there some alternative tool that will make it work? What's the status of C2HS? c2hs seems to be quite stable. It's used in gtk2hs which exists for a long time now. c2hs is one way only. There is yet another tool: hdirect.

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

-fallow-incoherent-instances not working

2007-02-21 Thread Marc Weber
I'm trying to learn more about HList. While setting up a small test application I got the following error.. ghc(i) tells me to add -fallow-incoherent-instances but doesn't recognize it ? Is this a bug? [EMAIL PROTECTED] /pr/haskell/test/HList $ ghci -package HList HListTestMain.hs ___

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 - [String]

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

bad interface file - how to track error down?

2007-02-17 Thread Marc Weber
How to track this error down? When not using cabal adding OldNew.hs to the include path everything is fine --- command run -- $ rm -fr dist; cWC; cat MW/OldNew.hs; ghc --show-iface dist/build/MW/OldNew.hi; cd testapp/; cat test.hs; ghc -package mwutil --make test.hs' /tmp/f cWC does

hasktags - small patch

2007-02-16 Thread Marc Weber
[] = ([],[]) myBreak (':':':':xs) = ([], ::++xs) myBreak (' ':xs) = ([],xs); myBreak (x:xs) = let (a,b) = myBreak xs in (x:a,b) Marc Weber

Re: HDirect and GHC-6.6

2007-01-11 Thread Marc Weber
On Wed, Jan 10, 2007 at 09:24:40PM +, Fernand Lacas wrote: Hello, This is my first post on this mailing list and I hope it will not be too off-topic. My point is that I have worked a little on the porting of the last (0.21) version of HDirect

Re: Lookup module and package defining x?

2006-08-08 Thread Marc Weber
$ghc-pkg --where-from ParseError package parsec: defining modules: Text.ParserCombinators.Parsec.Error, Text.ParserCombinators.Parsec ? This is what I've done by now... It took me some days to notice that the ./ghc-pkg symlinks to ghc-pkg-6.5 which calls the ghc-pkg from /usr/lib/...

Lookup module and package defining x?

2006-07-21 Thread Marc Weber
Has somene already implemented something like: $ghc-pkg --where-from ParseError package parsec: defining modules: Text.ParserCombinators.Parsec.Error, Text.ParserCombinators.Parsec ? lambdabot @index does what I want, but not with my libs installed only locally.. This might be used by any

Re: Lookup module and package defining x?

2006-07-21 Thread Marc Weber
$ghc-pkg --where-from ParseError package parsec: defining modules: Text.ParserCombinators.Parsec.Error, Text.ParserCombinators.Parsec Have you tried Hoogle? http://haskell.org/hoogle/ I know it. But I don't know yet which source it takes (haskell - source, haddck html files, ...) ? My

Why is there no splitBy in the list module?

2006-07-10 Thread Marc Weber
There is already lines. Why not generalise it to take an additional parameter '\n' and call it split or splitBy? There are some cases where you want to split a list not on '\n'. Marc ___ Glasgow-haskell-users mailing list

Re: [Haskell-cafe] Packages and modules

2006-06-28 Thread Marc Weber
I'm not sure on which mail of this thread I should append MHO. What happens if two programmers happen to choose the same package name? (Prepend the location on the filesystem? ;-) If something like a package name is introduced I would prefer not separating package and module name with a .

deriving existential types

2006-05-04 Thread Marc Weber
) = CObj c deriving (C) ? - ? Or is this already possible? Marc Weber ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Building ghc stages - solved

2006-04-21 Thread Marc Weber
On Thu, Apr 20, 2006 at 10:35:20PM +0100, Simon Peyton-Jones wrote: Currently -fglasgow-exts implies -fth That is, you get Template Haskell if you specify -fglasgow-exts. The trouble is that if you don't know about TH, then the error messages can be deeply strange, as Marc

Re: Building ghc stages - solved

2006-04-18 Thread Marc Weber
On Mon, Apr 17, 2006 at 01:20:34PM +0200, Marc Weber wrote: GHC stage restriction: `view' is used in a top-level splice, and must be imported, not defined locally The solution was to change where elemFromList = listToMaybe $ drop 1 $(dropWhile (/= view) $ (xs++[x])) into : where elemFromList