Re: [Haskell-cafe] How to get a file path to the program invoked?

2011-12-15 Thread Peter Wortmann
is easiest if you're on Linux: getExePath = readSymbolicLink /proc/self/exe On all other operation system, one needs to start mucking around with custom kernel calls. Or, more realistically, try to find a way around requiring it... Greetings, Peter Wortmann [1] http://stackoverflow.com

Re: [Haskell-cafe] Implementing a New primop

2011-10-20 Thread Peter Wortmann
Have you tried rebuilding GHC completely after the change? I tried your change and the error went away after I rebuilt from scratch. The build system probably just didn't pick up all files that needed rebuilding. Might be worth reporting? Not sure. Greetings, Peter Wortmann

[Haskell-cafe] Re: Re: Lambda-case / lambda-if

2010-10-08 Thread Peter Wortmann
satisfying to have such special cases, but it is still a good bit more general than what is available right now. Greetings, Peter Wortmann ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Lambda-case / lambda-if

2010-10-07 Thread Peter Wortmann
of code that I feel could be written better using this. Anything I am overlooking here? I tried to find a discussion about something like this, but didn't really know what to look for... Greetings, Peter Wortmann ___ Haskell-Cafe mailing list

[Haskell-cafe] Re: Odd parallel haskell observations

2010-08-09 Thread Peter Wortmann
now. That would explain nicely why you can't get more than single-core performance out of your program. In case you are interested in the details, search for the new Scalable Event Handling for GHC paper by Bryan O'Sullivan and Johan Tibell. Greetings, Peter Wortmann