Re: Foreign C with pointers

2007-12-19 Thread Lemmih
other way. The other 2 definitions don't even compile. I posted two new type-signatures and two new definitions. I'm quite sure the right combination would work. -- Cheers, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Re: Foreign C with pointers

2007-12-18 Thread Lemmih
(shiftIP ptr) shiftMyIP ip = unsafePerformIO . alloca $ \ptr - poke ptr ip peek = (shiftIP ptr) or shiftMyIP ip = unsafePerformIO . alloca $ \ptr - poke ptr ip shiftIP ptr peek ptr -- Cheers, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell

Re: ghci changes in 6.8 that are not improvements

2007-11-30 Thread Lemmih
occurred. -- Cheers, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: capabilities of GHC API

2007-05-19 Thread Lemmih
of it, I didn't want to start something on my own if that is the case... This is pretty much that the GHCi debugger does expect it restores the environment at the end of a breakpoint. If you have GHC-6.6 or greater, try: let n = 2 in GHC.Base.breakpoint () -- Cheers, Lemmih

Re: capabilities of GHC API

2007-05-19 Thread Lemmih
really pay more attention. -- Cheers, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: hrm...

2007-01-26 Thread Lemmih
GHC.Prim.eqWord# (GHC.Prim.and# __word 4294901760 ww_sIw) __word 0 of wild21_XHW { GHC.Base.False - __word 2; GHC.Base.True - __word 0 } } -- Cheers, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http

Re: OPTIONS_GHC -auto-all

2006-12-04 Thread Lemmih
flags. They cannot be turned on after GHC starts processing the file. See http://www.haskell.org/ghc/docs/latest/html/users_guide/static-dynamic-flags.html -- Cheers, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http

Re: getting the -B topdir for a GHC-API app

2006-10-22 Thread Lemmih
://www.cse.unsw.edu.au/~dons/code/hs-plugins/scripts/Setup-with-ghc.lhs -- Cheers, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: foldl laziness support

2006-10-15 Thread Lemmih
creeps in everywhere. Also may things are easy to program via foldl. I wonder how to avoid these numerous cost pitfalls. Maybe, the complier could do more optimization? How about using 'foldr'? -- Cheers, Lemmih ___ Glasgow-haskell-users mailing list

Re: Change Data.Bits.rotate to rotate Integer (unbounded) types

2006-09-19 Thread Lemmih
changing Data.Bits at all (crypto defines Word128, Word192 and Word256 which are instances of Bits). -- Cheers, Lemmih crypto: http://www.haskell.org/crypto/ ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org

Re: [Haskell] STM applications and examples?

2006-06-15 Thread Lemmih
it. Conjure (a bittorrent client) is using STM quite heavily. It isn't usable as a whole but it has some interesting parts. Darcs repository: http://darcs.haskell.org/~lemmih/conjure/ -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow

Re: ghc api / calling functions?

2006-05-16 Thread Lemmih
++ : is a class expectOneName [x] = x expectOneName [] = error $ No such symbol in plugin: ++ symbol expectOneName _ = error $ Ambiguous symbol in plugin: ++ symbol -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list

Re: ghc api / calling functions?

2006-05-16 Thread Lemmih
: http://darcs.haskell.org/hIDE/packages/hidePlugin/src/Hide/Plugin/LoaderMidLevel.hs There isn't much to test yet, unfortunately. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org

Re: eval in ghc(i)?

2006-05-05 Thread Lemmih
On 5/5/06, Geoffrey Alan Washburn [EMAIL PROTECTED] wrote: Lemmih wrote: On 5/4/06, Donald Bruce Stewart [EMAIL PROTECTED] wrote: geoffw: I have an application written in OCaml that I'm interested in porting over to Haskell, and I was wondering what the best way to replace

Re: eval in ghc(i)?

2006-05-03 Thread Lemmih
= x + 1 Prelude GHC runStmt session add1 2 3 Prelude GHC :q Leaving GHCi. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: eval in ghc(i)?

2006-05-03 Thread Lemmih
On 5/4/06, wld [EMAIL PROTECTED] wrote: Hi, On 5/4/06, Lemmih [EMAIL PROTECTED] wrote: You can also use the GHC library: Prelude :m GHC Prelude GHC GHC.init (Just /home/david/coding/haskell/ghc/usr/lib/ghc-6.5) Prelude GHC session - newSession Interactive Prelude GHC setSessionDynFlags

Re: 'while' loop on mutable arrays causes stack overflow

2006-04-20 Thread Lemmih
Implementing 'dot' without the 'while' loop and STRefs will make it shorter and faster, btw. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: inside the GHC code generator

2006-03-12 Thread Lemmih
arguments, and, since that's fairly rare, wouldn't give Joe Hacker any noticeable speed up. Are we at the end of what we can get without whole-program optimizations or are there other optimizations that apply to C-- representing a lazy PL? -- Friendly, Lemmih

Re: Missing Folder in ghc?

2006-02-28 Thread Lemmih
On 2/28/06, Ashley Yakeley [EMAIL PROTECTED] wrote: I'm trying to build GHC from source. But the ghc repository at http://darcs.haskell.org/ghc seems to be missing ghc/lib/compat/Cabal? Did you run 'sh darcs-all get'? -- Friendly, Lemmih

Re: Re[2]: inside the GHC code generator

2006-02-24 Thread Lemmih
? -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Re[4]: inside the GHC code generator

2006-02-24 Thread Lemmih
On 2/24/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: Hello Lemmih, Friday, February 24, 2006, 1:15:51 PM, you wrote: clean differs from Haskell in support of unique types and strictness annotations. the last is slowly migrates into GHC in form of shebang patters, but i think

Re: New bug tracker: Trac

2006-01-22 Thread Lemmih
username - type your password when prompted - let me know when you've done this Done. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Error in GHC

2006-01-18 Thread Lemmih
called main? Does ghc -fglasgow-exts --make Main -o exec work? -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

GHC wish list.

2005-12-13 Thread Lemmih
a profiling version of the library and not being able to rebuild it easily is a bit limiting. * GHCi compatibility. hIDE is currently using ghc-api[1] because the real library exports symbols that clashes with GHCi. -- Friendly, Lemmih [1] ghc-api: http://scannedinavian.com/~lemmih/ghc-api

Re: making with profiling, 6.4.1, cabal-1.1.3

2005-10-03 Thread Lemmih
at all. Just pass --enable-library-profiling to the setup script when you're configuring the library. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell

Re: ghc and cabal

2005-08-06 Thread Lemmih
-options for profiling options. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: problems building trhsx-0.2 with ghc-6.5.20050723

2005-08-01 Thread Lemmih
to the author. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: IO and STM

2005-04-13 Thread Lemmih
at research.microsoft.com/~simonpj/papers/stm/stm.ps, if you haven't already. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: [Haskell-cafe] Parse error

2005-03-17 Thread Lemmih
_a lot_ prettier when using the layout to structure the program. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

TH libraries and linking.

2005-03-14 Thread Lemmih
. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

GHCi and C++.

2005-02-25 Thread Lemmih
?) and I was wondering how to solve this nicely. Any hints or pointers would be greatly appreciated. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: GHCi and C++.

2005-02-25 Thread Lemmih
On Fri, 25 Feb 2005 18:27:03 +, Duncan Coutts [EMAIL PROTECTED] wrote: On Fri, 2005-02-25 at 19:05 +0100, Lemmih wrote: Greetings fellow Haskellers and other readers, During my ongoing research on doing whatever I feel like, I discovered that using C++ libaries in GHCi (no problems

Re: GHCi and C++.

2005-02-25 Thread Lemmih
to overcome the name mangling (extern C functions calling C++, nothing fancy). Is there a way to make that more GHCi friendly or should I explore other options? -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http

Re: Timing Functions

2005-01-17 Thread Lemmih
be evaluated since it's not necessary for the function to terminate. Check 'replicateM_' from Control.Monad. runNReps :: Int - IO a - IO () runNReps = replicateM_ -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users

Re: HaXml and ghc-current

2005-01-11 Thread Lemmih
from CVS because I cabalized it on my own before realizing others had already done it. -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: HaXml and ghc-current

2005-01-10 Thread Lemmih
in the package database format? I haven't been following all this, so I am a bit at a loss what to do. Has anyone else managed to install HaXml successfully? Any advice? Peter -- Friendly, Lemmih ___ Glasgow-haskell-users mailing list Glasgow