[Haskell-cafe] ghc with -fPIC support

2011-10-03 Thread Phyx
-oHs2lib.a /tmp/Hs2lib924498/Hs2lib.hs dllmain.o -static -fno-warn-deprecated-flags -O2 -package ghc -package Hs2lib -i/home/phyx/Documents/Haskell/Hs2lib -optl-Wl,-s -funfolding-use-threshold=16 -optc-O3 -optc-ffast-math Linking a.out ... *** /usr/bin/ld: /tmp/Hs2lib924498/Hs2lib.o: relocation R_X86_64_32

[Haskell-cafe] ANNOUNCE: Hs2lib-0.5.5

2011-09-04 Thread Phyx
What is it? A preprocessor and library which allow you to create dynamic libs from arbitrary annotated Haskell programs with one click. It also allows you to use the generated lib in C, C++ and C# just by including the generated header files. At a minimum it can be considered the

Re: [Haskell-cafe] ANNOUNCE: Hs2lib-0.4.8

2011-07-02 Thread Phyx
see, you can automatically mashall haskell datatypes into C structs. Are there portable libraries that do that ? Or do you do this by yourself ? 2011/7/1 Phyx loneti...@gmail.com What is it? A preprocessor and library which allow you to create dynamic libs from arbitrary

Re: [Haskell-cafe] ANNOUNCE: Hs2lib-0.4.8

2011-07-02 Thread Phyx
Err, I mean size and alignment. On Sat, Jul 2, 2011 at 8:03 AM, Phyx loneti...@gmail.com wrote: It's all done by the tool itself. It uses hsc2hs to calculate the offset and size of the structures, but generating the actual structures is done inside the tool itself. Regards, Tamar On Sat

[Haskell-cafe] ANNOUNCE: Hs2lib-0.4.8

2011-07-01 Thread Phyx
What is it? A preprocessor and library which allow you to create dynamic libs from arbitrary annotated Haskell programs with one click. It also allows you to use the generated lib in C, C++ and C# just by including the generated header files. At a minimum it can be considered the

RE: [Haskell-cafe] Windows binary for latest darcs head

2010-10-12 Thread Phyx
If oktober 7th would do you can get it at http://www.haskell.org/ghc/dist/current/dist/ http://www.haskell.org/ghc/dist/current/dist/ghc-7.1.20101007-i386-windows.e xe maybe a newer build would show up soon. From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org]

RE: [Haskell-cafe] what's the best environment for haskell work?

2010-08-02 Thread Phyx
I'm curious, what are those minor annoying things? -Original Message- From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of David Virebayre Sent: Monday, August 02, 2010 13:11 To: Rustom Mody Cc: haskell-cafe@haskell.org Subject: Re: [Haskell-cafe]

RE: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Phyx
The colors I believe are much nicer on those. Regards, Phyx -Original Message- From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Christopher Done Sent: Saturday, July 17, 2010 14:32 To: Andrew Coppin Cc: haskell-cafe@haskell.org Subject: Re

RE: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Phyx
To: Phyx Cc: Andrew Coppin; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site Have you got SVG or PNG versions of those logos? On 17 July 2010 14:54, Phyx loneti...@gmail.com wrote: Hi Chris, I like it, I just have 2 small observations: 1. I

RE: [Haskell-cafe] ghc api printing of types

2010-07-17 Thread Phyx
Hey Daniel, You were right, that is the correct way of doing it, I just found out the type I was trying to print didn't have the context at that level anymore, I had to look one position higher in the ast. Thanks, Phyx -Original Message- From: Daniel Gorín [mailto:dgo...@dc.uba.ar

RE: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Phyx
I still like the original design on http://imgur.com/NjiVh a lot better, It has a simple modern design to it in my opinion :) -Original Message- From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Christopher Done Sent: Saturday, July 17, 2010

[Haskell-cafe] Marshalling

2010-07-13 Thread Phyx
Hello I'm wondering if anyone ever benchmarked marshalling in Haskell/GHC. No matter how much I optimize my Haskell code my program still seems to run slow, which leads me to beleive that Marshalling is painfully slow. Does anyone know a way I can test this and fix it? Regards, Phyx

Re: [Haskell-cafe] Marshalling

2010-07-13 Thread Phyx
, Jul 13, 2010 at 3:30 PM, Magnus Therning mag...@therning.orgwrote: On Tue, Jul 13, 2010 at 13:29, Phyx loneti...@gmail.com wrote: Hello I'm wondering if anyone ever benchmarked marshalling in Haskell/GHC. No matter how much I optimize my Haskell code my program still seems to run slow

Re: [Haskell-cafe] Marshalling

2010-07-13 Thread Phyx
I understand that part, but the strings are generated from SDocs, and So unless internally SDoc doesn't use String then I'm afraid there's nothing I can do about that :/ Or rather, Is there a way to efficiently make CWStrings from SDocs? Regards, Phyx On Tue, Jul 13, 2010 at 6:56 PM, Thomas

[Haskell-cafe] ghc api printing of types

2010-07-04 Thread Phyx
I was wondering how given a Type I can get a pretty printed type out of it. I'm currently using showSDocUnqual . pprType . snd . tidyOpenType emptyTidyEnv But this has the problem that predicates don't get printed, anyone know how GHCi does this? Thanks, Phyx

RE: [Haskell-cafe] ghc api printing of types

2010-07-04 Thread Phyx
printer out (t_amCk, [a]) - (t_amCk, [a]) - (t_amCk, [a]) is what I get instead of Num t = (t, [a]) - (t, [a]) - (t, [a]) :( Guess I'll go take a look at hint to see if it does anything else Cheers, Phyx -Original Message- From: Daniel Gorín [mailto:dgo...@dc.uba.ar] Sent: Sunday, July

[Haskell-cafe] ghc api printing of types

2010-07-01 Thread Phyx
I was wondering how given a Type I can get a pretty printed type out of it. I'm currently using showSDocUnqual . pprType . snd . tidyOpenType emptyTidyEnv But this has the problem that predicates don't get printed, anyone know how GHCi does this? Thanks, Phyx

[Haskell-cafe] Literate programming

2010-06-12 Thread Phyx
I've experimented with LHS, NoWeb, and NuWeb. LHS is useless -- you can achieve the exact same effect with standard comments. I can't figure out why it exists. NuWeb is nice, but immature -- I had trouble getting it to generate correct output without jumping through hoops. NoWeb is my current

RE: [Haskell-cafe] GHC Api typechecking

2010-06-07 Thread Phyx
this might be useful for other means, It's not really that much better in terms of performance. Regards, Phyx -Original Message- From: Thomas Schilling [mailto:nomin...@googlemail.com] Sent: Sunday, April 18, 2010 18:21 To: Phyx Cc: Gwern Branwen; haskell-cafe@haskell.org Subject: Re: [Haskell

RE: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-22 Thread Phyx
). That stopped it from showing part of the error, but can’t figure out what’s showing the module name at the end. “Printf” From: Daniel Peebles [mailto:pumpkin...@gmail.com] Sent: Saturday, May 22, 2010 03:02 To: Phyx Cc: Thomas Schilling; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe

RE: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-22 Thread Phyx
the help, Phyx I did some more digging around and it would seem that the error was being printed from the load call (depanal does some parsing ofcourse to find the imports). I managed to silence that using loadWithLogger (const $ return ()) LoadAllTargets (maybe all these loggers should

RE: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-21 Thread Phyx
Hi, I tried that, setting it to (\_ _ _ _ - return ()) and it still did the same, also tried setting it to undefined to see whether the code that's printing the error is using it, and it didn't crash So I assume it's not. --- *VsxParser getModInfo True C:\\Users\\Phyx\\AppData\\Local

[Haskell-cafe] making the GHC Api not write to stderr

2010-05-20 Thread Phyx
I was wondering how to forcibly quiet down the API. I have a custom handler in place, but when I call the function on failure both my handler gets called and somewhere somehow errors get printed to the stderr, which I really need to avoid. My current code looks like getModInfo :: Bool -

RE: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-20 Thread Phyx
if the API just allowed me to turn off this behavior of writing to stderr. From: Jean-Denis Koeck [mailto:jdko...@gmail.com] Sent: Thursday, May 20, 2010 21:59 To: Phyx Subject: Re: [Haskell-cafe] making the GHC Api not write to stderr Maybe this http://nominolo.blogspot.com/2010/04/haskell-tip

RE: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-20 Thread Phyx
: [Haskell-cafe] making the GHC Api not write to stderr hi, i tried this too, but i did not get it. a very nice workaround is to use hint [1]. have fun martin [1]: http://hackage.haskell.org/package/hint On 20.05.2010 20:05, Phyx wrote: I was wondering how to forcibly quiet down the API. I

RE: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Phyx
Right, the problem is that under windows 7 and vista the Program Files folder if not yours as in you don't have direct permission to write there without elevation. You could go to the Haskell folder, and grand your current user full rights, but any new tools installed will inherit the original

RE: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Phyx
I wouldn't do this because the installed tools will be written with that elevated rights, so you can only invoke them from an elevated prompt, which is a bit cumbersome. -Original Message- From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Zura_

[Haskell-cafe] ghc api renamed source

2010-05-12 Thread Phyx
but if typechecking failes, I get no information at all (an error), while I should be able to still get the renamed source. Any suggestions? Cheers, Phyx ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

[Haskell-cafe] GHC lexer questions

2010-04-22 Thread Phyx
Hi all, I have a few questions about the GHC lexer (currently using GHC Glasgow Haskell Compiler, Version 6.13.20100320, for Haskell 98, stage 2 booted by GHC version 6.12.1) And I notice that when invoking the lexer I get a few unexpected results that I was hoping someone could clarify.

RE: [Haskell-cafe] GHC Api typechecking

2010-04-18 Thread Phyx
): no package state yet: call GHC.setSessionDynFlags Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug :( Cheers, Phyx -Original Message- From: Gwern Branwen [mailto:gwe...@gmail.com] Sent: Saturday, April 17, 2010 20:59 To: Phyx Subject: Re: [Haskell-cafe] GHC

RE: [Haskell-cafe] GHC Api typechecking

2010-04-18 Thread Phyx
Ah, That's a shame :( I guess for now I'll just write the buffer out to disc first and switch it later on if the feature gets added. Thanks, Phyx -Original Message- From: Thomas Schilling [mailto:nomin...@googlemail.com] Sent: Sunday, April 18, 2010 18:21 To: Phyx Cc: Gwern Branwen

[Haskell-cafe] GHC Api typechecking

2010-04-17 Thread Phyx
string:internal ß problem again, don’t know how to create the dependency graph then. graph - depanal [modName] True (\a-setSession $ a { hsc_mod_graph = graph }) = getSession value - fmap typecheckedSource (typeCheck modName) return $ ApiOk True Cheers, Phyx

RE: [Haskell-cafe] ghc package problem

2010-04-17 Thread Phyx
Hi all, I was finally able to solve this by deleting the user package.conf.d completely. I think there was some problem with the package.cache file, It must have gotten corrupted somehow. Cheers, Phyx -Original Message- From: Ivan Lazar Miljenovic [mailto:ivan.miljeno...@gmail.com

[Haskell-cafe] ghc package problem

2010-04-16 Thread Phyx
Hi all, I'm having a rather weird problem, Ghc-pkg list shows a package installed but doing a ghc -make will give an error saying that It can't find a module that's supposed to be in the installed package. And cabal install always reinstall all the dependencies on every change. It

RE: [Haskell-cafe] ghc package problem

2010-04-16 Thread Phyx
-cafe@haskell.org Cc: Phyx Subject: Re: [Haskell-cafe] ghc package problem Am Freitag 16 April 2010 11:28:54 schrieb Phyx: Hi all, I'm having a rather weird problem, Ghc-pkg list shows a package installed but doing a ghc -make will give an error saying that It can't find a module that's

RE: [Haskell-cafe] ghc package problem

2010-04-16 Thread Phyx
Language.Haskell.Exts C:/msys/1.0/local\lib\package.conf.d: C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d: haskell-src-exts-1.9.0 So it should be able to find it. I'm using a snapshot of GHC 6.13 $ ghc -v Glasgow Haskell Compiler, Version 6.13.20100320, for Haskell 98

RE: [Haskell-cafe] ghc package problem

2010-04-16 Thread Phyx
-haskell-2.4.0.0 time-1.1.4 C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d: QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0

RE: [Haskell-cafe] ghc package problem

2010-04-16 Thread Phyx
...@googlemail.com] On Behalf Of Ben Millwood Sent: Friday, April 16, 2010 20:57 To: Phyx Cc: Ivan Lazar Miljenovic; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] ghc package problem On Fri, Apr 16, 2010 at 2:40 PM, Phyx loneti...@gmail.com wrote: So same error. This isn't just limited to HSE

RE: [Haskell-cafe] ghc package problem

2010-04-16 Thread Phyx
To: Phyx; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] ghc package problem Am Freitag 16 April 2010 15:40:38 schrieb Phyx: For the first part $ cat foo.hs module Main (main) where import Language.Haskell.Exts main :: IO () main = print $ readExtensions BangPatterns $ ghc --make

RE: [Haskell-cafe] ghc package problem

2010-04-16 Thread Phyx
as admins only, so I don't really want to continue using it like that. -Original Message- From: thebenmach...@googlemail.com [mailto:thebenmach...@googlemail.com] On Behalf Of Ben Millwood Sent: Friday, April 16, 2010 20:57 To: Phyx Cc: Ivan Lazar Miljenovic; haskell-cafe@haskell.org

RE: [Haskell-cafe] ghc package problem

2010-04-16 Thread Phyx
Yes I am, I'm running it all as the same user. -Original Message- From: Ivan Lazar Miljenovic [mailto:ivan.miljeno...@gmail.com] Sent: Saturday, April 17, 2010 00:45 To: Phyx Cc: 'Ben Millwood'; haskell-cafe@haskell.org; daniel.is.fisc...@web.de Subject: Re: [Haskell-cafe] ghc package

[Haskell-cafe] unboxed types in classes

2010-04-14 Thread Phyx
# Int where bar = iBox Regards, Phyx ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] unlifted types in classes

2010-04-10 Thread Phyx
# Int where bar = iBox Regards, Phyx ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe