[GHC] #1914: Reload is reloading all modules

2007-11-22 Thread GHC
#1914: Reload is reloading all modules -+-- Reporter: simonmar | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.8.3 Component: GHCi |

[GHC] #1916: compiling truncate :: Float - Int with -O2 panics ghc

2007-11-22 Thread GHC
#1916: compiling truncate :: Float - Int with -O2 panics ghc --+- Reporter: conal | Owner: Type: bug | Status: new Priority: normal| Milestone: Component:

Re: [GHC] #1109: lockFile: fd out of range

2007-11-22 Thread GHC
#1109: lockFile: fd out of range +--- Reporter: guest | Owner: igloo Type: merge | Status: new Priority: normal | Milestone: 6.8.3 Component:

[GHC] #1917: 6.8.1 windows installer doesn't include GLUT

2007-11-22 Thread GHC
#1917: 6.8.1 windows installer doesn't include GLUT --+- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler

Re: [GHC] #1917: 6.8.1 windows installer doesn't include GLUT

2007-11-22 Thread GHC
#1917: 6.8.1 windows installer doesn't include GLUT -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: normal|Milestone: Component:

Re: [GHC] #474: Debug.Trace.trace should work on Show

2007-11-22 Thread GHC
#474: Debug.Trace.trace should work on Show -+-- Reporter: jch | Owner: igloo Type: feature request | Status: closed Priority: normal | Milestone: 6.10

Re: [GHC] #1646: : panic! (the 'impossible' happened)

2007-11-22 Thread GHC
#1646: : panic! (the 'impossible' happened) --+- Reporter: guest | Owner: igloo Type: bug | Status: closed Priority: normal| Milestone: 6.8.2 Component: Compiler

You can now register a trac user for yourself

2007-11-22 Thread Ian Lynagh
Hi all, It is now possible to register a new user account for yourself on the GHC trac. To do so, make sure you are logged out and then click the register link at the top-right, or go to this URL: http://hackage.haskell.org/trac/ghc/register Making your own account preferred over using the

Re: [GHC] #1917: 6.8.1 windows installer doesn't include GLUT

2007-11-22 Thread GHC
#1917: 6.8.1 windows installer doesn't include GLUT -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: normal|Milestone: Component:

Re: [GHC] #1109: lockFile: fd out of range

2007-11-22 Thread GHC
#1109: lockFile: fd out of range +--- Reporter: guest | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: 6.8.3 Component:

Re: [GHC] #1917: 6.8.1 windows installer doesn't include GLUT

2007-11-22 Thread GHC
#1917: 6.8.1 windows installer doesn't include GLUT -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: normal|Milestone: Component:

Re: [GHC] #1753: GHC's file locking mechanism not prepared for close() returning -1

2007-11-22 Thread GHC
#1753: GHC's file locking mechanism not prepared for close() returning -1 +--- Reporter: guest | Owner: igloo Type: merge | Status: new Priority: normal |

Re: [GHC] #1917: 6.8.1 windows installer doesn't include GLUT

2007-11-22 Thread GHC
#1917: 6.8.1 windows installer doesn't include GLUT --+- Reporter: guest | Owner: simonmar Type: task | Status: new Priority: normal| Milestone: Component:

Re: [GHC] #1867: GHC 6.6.1 and 6.8.1 don't run on Windows NT 4.0

2007-11-22 Thread GHC
#1867: GHC 6.6.1 and 6.8.1 don't run on Windows NT 4.0 ---+ Reporter: Orphi | Owner: Type: bug| Status: closed Priority: normal | Milestone:

compiling ghc w/o ghc

2007-11-22 Thread Bulat Ziganshin
Hello , i've seen the following report from a man who tried to compile 6.8.1 under linux without having any ghc installed: checking for ghc... no checking for path to top of build tree... ./configure: line 2724: -v0: command not found ./configure: line 2728: utils/pwd/pwd: No such file or

Re: [GHC] #1917: 6.8.1 windows installer doesn't include GLUT

2007-11-22 Thread GHC
#1917: 6.8.1 windows installer doesn't include GLUT --+- Reporter: guest | Owner: simonmar Type: task | Status: new Priority: normal| Milestone: Component:

Re: [GHC] #474: Debug.Trace.trace should work on Show

2007-11-22 Thread GHC
#474: Debug.Trace.trace should work on Show -+-- Reporter: jch | Owner: igloo Type: feature request | Status: closed Priority: normal | Milestone: 6.10

Re: [GHC] #1715: seldom panic

2007-11-22 Thread GHC
#1715: seldom panic +--- Reporter: [EMAIL PROTECTED] | Owner: igloo Type: merge | Status: closed Priority: normal | Milestone: 6.10

Re: [GHC] #1806: panic when pattern matching infix constructors with too many arguments

2007-11-22 Thread GHC
#1806: panic when pattern matching infix constructors with too many arguments -+-- Reporter: guest| Owner: igloo Type: merge| Status: closed

Re: [GHC] #1825: standalone deriving for typeable fails

2007-11-22 Thread GHC
#1825: standalone deriving for typeable fails ---+ Reporter: jpbernardy | Owner: igloo Type: merge | Status: closed Priority: normal | Milestone: 6.8.2

[GHC] #1918: Trying to execute a binary created on another machine prints floating point exception

2007-11-22 Thread GHC
#1918: Trying to execute a binary created on another machine prints floating point exception --+- Reporter: grzegorz | Owner: Type: bug | Status: new Priority: normal|

Re: [GHC] #1847: Oddity with :browse!

2007-11-22 Thread GHC
#1847: Oddity with :browse! --+- Reporter: simonmar | Owner: igloo Type: merge | Status: closed Priority: normal| Milestone: 6.8.2 Component: GHCi |Version: 6.8.1

Re: [GHC] #1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32

2007-11-22 Thread GHC
#1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32 +--- Reporter: int-e | Owner: igloo Type: merge | Status: closed Priority: normal |

Re: You can now register a trac user for yourself

2007-11-22 Thread Judah Jacobson
I had the same problem on OS X with Safari. The solution was to delete the old username/password that Safari had saved in OS X's Keychain Access utility. I imagine there's a similar solution for other browsers/OSes. Hope that helps, -Judah On Nov 22, 2007 10:41 AM, Deborah Goldsmith [EMAIL

RE: suggestion: add a .ehs file type

2007-11-22 Thread Simon Peyton-Jones
Alex, | Ok, I'm game to default to haskell98 in the presence of ambiguity, but | in most cases the extension involves new syntax and that should be enough. Trying to compile the program both ways (or 2^n ways) to check for ambiguity sounds like a pretty heavy hammer to crack this nut. GHC is

RE: label syntax vs DisambiguateRecordFields

2007-11-22 Thread Simon Peyton-Jones
| Nice feature but feel like a band-aid. In particular it makes SYB style | programming more difficult because field labels aren't types. | | Almost every other record syntax plan involves field labels as types so | you can do interesting type dispatch. Record systems are indeed an interesting

Re: suggestion: add a .ehs file type

2007-11-22 Thread Ketil Malde
Wolfgang Jeltsch [EMAIL PROTECTED] writes: It made me discover that I use more language extensions than I thought I was using. I think, it’s a good thing if you have to be clear about what extensions you use and what you don’t use. What if someone wants to compile your code with a

Re: label syntax vs DisambiguateRecordFields

2007-11-22 Thread Simon Marlow
Simon Peyton-Jones wrote: | Nice feature but feel like a band-aid. In particular it makes SYB style | programming more difficult because field labels aren't types. | | Almost every other record syntax plan involves field labels as types so | you can do interesting type dispatch. Record systems

Re: ghci changing 'm' to 'g'

2007-11-22 Thread Simon Marlow
Yitzchak Gale wrote: Quoth InteractiveUI.runGHCi: case maybe_expr of Nothing - do #if defined(mingw32_HOST_OS) -- The win32 Console API mutates the first character of -- type-ahead when reading from it in a non-buffered manner. Work --

Re: suggestion: add a .ehs file type

2007-11-22 Thread Simon Marlow
Alex Jacobson wrote: Isn't use of the extensions detectable by the compiler? Not always, no. Some extensions modify the syntax, such that programs accepted with the extension turned on are not necessarily a superset of those accepted with the extension turned off. For example: MagicHash

Re: suggestion: add a .ehs file type

2007-11-22 Thread Simon Marlow
Alex Jacobson wrote: In any case, I'm pretty sure the correct answer is not 50 language pragmas with arbitrary spellings for various language features at the top of each source file. You probably won't like any of these, but there are many ways to avoid writing out all the pragmas at the

Re: suggestion: add a .ehs file type

2007-11-22 Thread Lennart Augustsson
Or use a preprocessor that inserts a LANGUAGE pragma. :) On Nov 22, 2007 9:14 AM, Simon Marlow [EMAIL PROTECTED] wrote: Alex Jacobson wrote: In any case, I'm pretty sure the correct answer is not 50 language pragmas with arbitrary spellings for various language features at the top of

You can now register a trac user for yourself

2007-11-22 Thread Ian Lynagh
Hi all, It is now possible to register a new user account for yourself on the GHC trac. To do so, make sure you are logged out and then click the register link at the top-right, or go to this URL: http://hackage.haskell.org/trac/ghc/register Making your own account preferred over using the

Re: You can now register a trac user for yourself

2007-11-22 Thread Alfonso Acosta
That's good news. It also means you can set your own preferences (if you did so with the guest account you ended up receiving mails related to ticket you didn't create) ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

[Fwd: Re: suggestion: add a .ehs file type]

2007-11-22 Thread Richard Giraud
A pre-processor is a great idea. Template Haskell and Cabal make it possible to extend the language by adding all kinds of funky pre-processing (via Cabal hooks) and compile-time calculations. It wouldn't be too difficult to add a package-specific .ehs file type with the desired behavior.

Re: ghci changing 'm' to 'g'

2007-11-22 Thread Yitzchak Gale
Sigbjorn wrote: This was a hack to work around similar behaviour when starting up GHCi, Notice that my workaround is only applied upon startup, not in the REPL. = floating the hackery inward could just save the day. OK. Simon Marlow wrote: The underlying bug is in the Windows CRT, or

Re: Windows overlapped IO

2007-11-22 Thread Felix Martini
Hi all, Overlapped IO support for files and sockets is now in place in my test version of ghc-head. File functions use the win32 api and large files and Unicode filenames are supported (i'm not sure if ghc currently supports that for Windows). I've addded a new type Hdl which is an alias for FD

Re: suggestion: add a .ehs file type

2007-11-22 Thread Alex Jacobson
It seems like use of a lot of extensions is so obvious from syntax that the compiler is able to suggest the correct pragma to turn on to enable that syntax. In fact the way I know to use most of these pragmas is because the compiler told me about them. So, my suggestion is that in any case

RE: suggestion: add a .ehs file type

2007-11-22 Thread Simon Peyton-Jones
| So, my suggestion is that in any case where the compiler currently | suggests use of a particular pragma in an error message, it should | instead turn that pragma on and produce a warning. In the cases where the compiler makes that suggestion, yes what you suggest would be feasible I think.

Re: You can now register a trac user for yourself

2007-11-22 Thread Judah Jacobson
I had the same problem on OS X with Safari. The solution was to delete the old username/password that Safari had saved in OS X's Keychain Access utility. I imagine there's a similar solution for other browsers/OSes. Hope that helps, -Judah On Nov 22, 2007 10:41 AM, Deborah Goldsmith [EMAIL

Re: You can now register a trac user for yourself

2007-11-22 Thread Deborah Goldsmith
I stupidly missed the make sure you are logged out part, and now I can't log in to the account I created. :-/ Any suggestions? When I log in it just logs me in as guest without any interaction. Deborah On Nov 22, 2007, at 3:38 AM, Ian Lynagh wrote: Hi all, It is now possible to register

Re: You can now register a trac user for yourself

2007-11-22 Thread Deborah Goldsmith
Ahh, that fixed it. Thanks! Deborah On Nov 22, 2007, at 11:31 AM, Judah Jacobson wrote: I had the same problem on OS X with Safari. The solution was to delete the old username/password that Safari had saved in OS X's Keychain Access utility. I imagine there's a similar solution for other

Re: suggestion: add a .ehs file type

2007-11-22 Thread Wolfgang Jeltsch
Am Mittwoch, 21. November 2007 19:38 schrieb Alex Jacobson: Isn't use of the extensions detectable by the compiler? So you want extension inference. ;-) […] In any case, I'm pretty sure the correct answer is not 50 language pragmas with arbitrary spellings for various language features at

Re: suggestion: add a .ehs file type

2007-11-22 Thread Wolfgang Jeltsch
Am Donnerstag, 22. November 2007 02:07 schrieb Alex Jacobson: Duncan Coutts wrote: On Wed, 2007-11-21 at 19:26 -0500, Alex Jacobson wrote: Ok, I'm game to default to haskell98 in the presence of ambiguity, but in most cases the extension involves new syntax and that should be enough.

Re: suggestion: add a .ehs file type

2007-11-22 Thread Duncan Coutts
On Fri, 2007-11-23 at 01:50 +0100, Wolfgang Jeltsch wrote: Dont’t just think in terms of single modules. If I have a Cabal package, I can declare used extensions in the Cabal file. A user can decide not to start building at all if he/she sees that the package uses an extension

[Haskell] CFP --- FOAL: Foundations of Aspect-Oriented Languages

2007-11-22 Thread Ralf Laemmel
[You can actually check that indeed Haskell folks have contributed to this workshop in the past. -- Ralf] Call for papers: FOAL: *F*oundations *o*f *A*spect-Oriented *L*anguages A one day workshop affiliated with AOSD 2008 in Brussels, Belgium, on 31 March or 1 April 2008. Themes and Goals

Re: [Haskell-cafe] expanded standard lib

2007-11-22 Thread Ketil Malde
David Menendez [EMAIL PROTECTED] writes: Someone in a previous thread made an analogy between GHC and the linux kernel. I imagine that third-party Haskell distributions, consisting of GHC/Hugs/whatever and some bundled packages, would meet the desire for a batteries included Haskell

[Haskell-cafe] Problems with do notation

2007-11-22 Thread Peter Verswyvelen
worksFine = if True then putStrLn True else putStrLn False worksNOT = do if True then putStrLn True else putStrLn False worksAgain = do if True then putStrLn True else putStrLn False Of course the worksFine function returns an IO action, so has different behavior, but I mean the

Re: [Haskell-cafe] Problems with do notation

2007-11-22 Thread Thomas Schilling
On Thu, 2007-11-22 at 09:19 +0100, Peter Verswyvelen wrote: worksFine = if True then putStrLn True else putStrLn False worksNOT = do if True then putStrLn True else putStrLn False worksAgain = do if True then putStrLn True else putStrLn False Of course the

[Haskell-cafe] Dynamically find out instances of classes (plugin system for haskell)

2007-11-22 Thread Radosław Grzanka
Hi, Is there any plugin system for haskell? For example, in Java, I can load all compiled classes from given directory, check their interfaces and run some methods through reflection etc. Is it possible in haskell, to load modules from given directory, and if in module there is instance of class

Re: [Haskell-cafe] Problems with do notation

2007-11-22 Thread Luke Palmer
On Nov 22, 2007 8:19 AM, Peter Verswyvelen [EMAIL PROTECTED] wrote: worksFine = if True then putStrLn True else putStrLn False This is just an expression, the indentation is inconsequential. worksNOT = do if True then putStrLn True else putStrLn False The first line,

Re: [Haskell-cafe] expanded standard lib

2007-11-22 Thread Ketil Malde
Duncan Coutts [EMAIL PROTECTED] writes: I did a quick popularity count by wget'ting the whole thing, and looking for hrefs under cgi-bin/packages/archive¹. That's quite fascinating. Thanks. You've convinced me we should add something like that :-). Note that that was only a direct count, I

[Haskell-cafe] Re: expanded standard lib

2007-11-22 Thread apfelmus
Ketil Malde wrote: David Menendez [EMAIL PROTECTED] writes: Someone in a previous thread made an analogy between GHC and the linux kernel. I imagine that third-party Haskell distributions, consisting of GHC/Hugs/whatever and some bundled packages, would meet the desire for a batteries included

RE: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Radoslaw Grzanka Hi, Is there any plugin system for haskell? For example, in Java, I can load all compiled classes from given directory, check their interfaces and run some methods through reflection etc. Is it possible in

[Haskell-cafe] Re: Over-allocation

2007-11-22 Thread Gracjan Polak
Don Stewart dons at galois.com writes: ByteStrings have all the same operations as lists though, so you can index, compare and take substrings, with the benefit that he underlying string will be shared, not copied. And only use 1 byte per element. Is there any parser built directly over

Re: [Haskell-cafe] More problems [Tetris]

2007-11-22 Thread Bulat Ziganshin
Hello Andrew, Wednesday, November 21, 2007, 9:26:45 PM, you wrote: It seems that the [Haskell] GLUT package isn't installed. at least i remember my own proposal to remove from GHC distribution graphics packages - because they are fat, rarely used and mostly outdated Hackage. ;-) But, alas,

Re: [Haskell-cafe] expanded standard lib

2007-11-22 Thread Vladimir Zlatanov
snip Many other programming languages have packaging strategies that sound very similar. Several of them have managed to have a negative impact on platforms that already have good packaging technologies (i.e. almost every platform apart from Windows ;-). I'd hate to see Haskell go in a

Re: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Radosław Grzanka
Hi, Thanks for answer. There are two libs that I'm aware of. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/plugins-1.0 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/metaplug-0.1. 1 Unfortunatly former needs gcc, latter does not compile . I will have to install

Re: [Haskell-cafe] Re: More problems [Tetris]

2007-11-22 Thread Lennart Augustsson
IMHO, no one in the right mind uses Windows voluntarily. :) I'm forced to use it at work, and it's a pain. But since many are forced to use Windows it would be nice if ghc was as well supported on Windows and Unix. On Nov 22, 2007 12:11 AM, Aaron Denney [EMAIL PROTECTED] wrote: On 2007-11-21,

Re: [Haskell-cafe] More problems [Tetris]

2007-11-22 Thread Jules Bean
Peter Verswyvelen wrote: No GLUT is not bundled with GHC 6.8.1 anymore. Yes, that is weird. I think it's weird too, so I bug reported it: http://hackage.haskell.org/trac/ghc/ticket/1917 Jules ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Problems with do notation

2007-11-22 Thread Henning Thielemann
On Thu, 22 Nov 2007, Peter Verswyvelen wrote: worksFine = if True then putStrLn True else putStrLn False worksNOT = do if True then putStrLn True else putStrLn False worksAgain = do if True then putStrLn True else putStrLn False Of course the worksFine

Re: [Haskell-cafe] Problems with do notation

2007-11-22 Thread Bulat Ziganshin
Hello Peter, Thursday, November 22, 2007, 11:19:20 AM, you wrote: Of course the worksFine function returns an IO action, so has different behavior, but I mean the indentation is different. Is this by design? to be exact, Haskell procedure is just a function returning an action. i recommend

Re[4]: [Haskell-cafe] expanded standard lib

2007-11-22 Thread Bulat Ziganshin
Hello Thomas, Wednesday, November 21, 2007, 6:30:17 PM, you wrote: zoho writer: online, not xml editor, but at least able to export into pdf/html/doc/.. It's not open source + it doesn't do what we need - Bang! \also they host stuff for you, and only have limited room for free usage.

[Haskell-cafe] Re: Over-allocation

2007-11-22 Thread Gracjan Polak
Gracjan Polak gracjanpolak at gmail.com writes: Don Stewart dons at galois.com writes: ByteStrings have all the same operations as lists though, so you can index, compare and take substrings, with the benefit that he underlying string will be shared, not copied. And only use 1 byte

Re: [Haskell-cafe] Dynamically find out instances of classes (plugin system for haskell)

2007-11-22 Thread Bulat Ziganshin
Hello Radoslaw, Thursday, November 22, 2007, 11:34:56 AM, you wrote: Is there any plugin system for haskell? For example, in Java, I can there is also ghc-as-a-library shortly said, ghc doesn't have dynamic abilities, so providing features you need without compiling the whole program on the

Re: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Claus Reinke
Is there any plugin system for haskell? For example, in Java, I can load all compiled classes from given directory, check their interfaces and run some methods through reflection etc. Is it possible in haskell, to load modules from given directory, and if in module there is instance of class

Re: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Radosław Grzanka
2007/11/22, Claus Reinke [EMAIL PROTECTED]: Is there any plugin system for haskell? For example, in Java, I can load all compiled classes from given directory, check their interfaces and run some methods through reflection etc. Is it possible in haskell, to load modules from given

[Haskell-cafe] Searched for mdo on haskell.org. Found nothing.

2007-11-22 Thread Richard Kelsall
I was reading the 'Problems with do notation' thread and Thomas Schilling suggested reading about mdo. Not knowing mdo I thought that sounds interesting and went to http://haskell.org/ which redirects you to http://haskell.org/haskellwiki/Haskell and gives you a search box. Typing mdo and

Re: [Haskell-cafe] Searched for mdo on haskell.org. Found nothing.

2007-11-22 Thread Dougal Stanton
On 22/11/2007, Richard Kelsall [EMAIL PROTECTED] wrote: Did I do something wrong when searching haskell.org? You didn't use Google first? ;-) Seriously though, using the search box at haskell.org seems to be a dead loss. I'm sure this has come up in the past. D. -- Dougal Stanton [EMAIL

Re: [Haskell-cafe] Searched for mdo on haskell.org. Found nothing.

2007-11-22 Thread Mads Lindstrøm
Hi All Richard Kelsall wrote: I was reading the 'Problems with do notation' thread and Thomas Schilling suggested reading about mdo. Not knowing mdo I thought that sounds interesting and went to http://haskell.org/ which redirects you to http://haskell.org/haskellwiki/Haskell and

RE: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Grzegorz Chrupala
Bayley, Alistair-2 wrote: There are two libs that I'm aware of. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/plugins-1.0 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/metaplug-0.1. 1 There is also

Re: [Haskell-cafe] Searched for mdo on haskell.org. Found nothing.

2007-11-22 Thread Richard Kelsall
Thomas Schilling wrote: On Thu, 2007-11-22 at 13:23 +, Richard Kelsall wrote: I was reading the 'Problems with do notation' thread and Thomas Schilling suggested reading about mdo. Not knowing mdo I thought that sounds interesting and went to Gah, I was too lazy to add the proper

Re: [Haskell-cafe] The Yampa Arcade: source code available?

2007-11-22 Thread Bit Connor
I am also happy to hear this. When will the new version be released? Thanks, Bit On Nov 21, 2007 7:11 PM, Paul L [EMAIL PROTECTED] wrote: Just to echo back to the question whether Yampa/AFRP is still being developed, the answer is YES. We are working on an updated version at Yale. But

Re: [Haskell-cafe] Searched for mdo on haskell.org. Found nothing.

2007-11-22 Thread Richard Kelsall
Mads Lindstrøm wrote: ... Did I do something wrong when searching haskell.org? Properly not. I think the problem is that haskell.org do not index words, that have length = 3. MediaWiki (which I think haskell.org uses) do not by default index short words (length = 3 or length = 4 - can't

[Haskell-cafe] Call external program and get stdout

2007-11-22 Thread Maurí­cio
Hi, How can I call a program (like, for instance, 'grep text *') and get the standard output? All actions I found (executeFile, system) do not give me the output of the program. Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Tetris

2007-11-22 Thread Bit Connor
On Nov 21, 2007 5:00 PM, Peter Verswyvelen [EMAIL PROTECTED] wrote: Last time I checked the SDL binding did not work properly on Windows when using GHCi. The next version of hsSDL (current darcs) has documentation that explains how to get ghci working. The trick is to make copies of the

Re: [Haskell-cafe] Call external program and get stdout

2007-11-22 Thread Jules Bean
Maurí­cio wrote: Hi, How can I call a program (like, for instance, 'grep text *') and get the standard output? All actions I found (executeFile, system) do not give me the output of the program. http://haskell.org/ghc/docs/latest/html/libraries/process-1.0.0.0/System-Process.html

[Haskell-cafe] Re: Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread ChrisK
the standard way to do that is use an existential wrapper: (This needs -fglasgow-exts or some flags) module Main where class Interface x where withName :: x - String data A = A String instance Interface A where withName (A string) = Interface A with ++ string ++ data B = B

Re: [Haskell-cafe] Re: Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Jason Dusek
ChrisK [EMAIL PROTECTED] wrote: the standard way to do that is use an existential wrapper: Does this relate to the basket of fruit problem in object oriented languages? You created the existential wrapper to allow a multimorphic list type? -- _jsn

[Haskell-cafe] Composing monads

2007-11-22 Thread Maurí­cio
Hi, If I have two computations a-IO b and b-IO c, can I join them to get an a-IO c computation? I imagine something like a liftM dot operator. Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Composing monads

2007-11-22 Thread Jonathan Cast
On 22 Nov 2007, at 10:17 AM, Maurí cio wrote: Hi, If I have two computations a-IO b and b-IO c, can I join them to get an a-IO c computation? I imagine something like a liftM dot operator. This is called Kleisli composition, by the way; it's defined as (=) in Control.Monad. jcc

Re: [Haskell-cafe] How to abort a computation within Continuation Monad?

2007-11-22 Thread Derek Elkins
On Thu, 2007-11-22 at 01:01 -0500, Dimitry Golubovsky wrote: Hi, I finally was able to write a function which grabs the remainder of the computation in Cont monad and passes it to some function, in the same time forcing the whole computation to finish by returning a final value. I am not

Re: [Haskell-cafe] Call external program and get stdout

2007-11-22 Thread Allan Clark
Jules Bean wrote: Maurí­cio wrote: Hi, How can I call a program (like, for instance, 'grep text *') and get the standard output? All actions I found (executeFile, system) do not give me the output of the program.

Re: [Haskell-cafe] Re: More problems [Tetris]

2007-11-22 Thread Andrew Coppin
Lennart Augustsson wrote: IMHO, no one in the right mind uses Windows voluntarily. :) I'm forced to use it at work, and it's a pain. But since many are forced to use Windows it would be nice if ghc was as well supported on Windows and Unix. What he said. ;-) I will say this: GHC itself

Re: [Haskell-cafe] question about ghci on windows ...

2007-11-22 Thread Andrew Coppin
Brandon S. Allbery KF8NH wrote: On Nov 21, 2007, at 19:57 , Galchin Vasili wrote: Hi Ian, I am trying to dump out all function signatures exported from System.Directory. I just tried inside ghci: :! ghc --show-iface System.Directory. This is getting closer ... thank you! However, now

Re: [Haskell-cafe] Composing monads

2007-11-22 Thread Brandon S. Allbery KF8NH
On Nov 22, 2007, at 13:17 , Maurí cio wrote: If I have two computations a-IO b and b-IO c, can I join them to get an a-IO c computation? I imagine something like a liftM dot operator. If you have GHC 6.8.1, this is the Kleisli composition operator (=) in Control.Monad. (There is also (=)

[Haskell-cafe] Re: Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread ChrisK
Jason Dusek wrote: ChrisK [EMAIL PROTECTED] wrote: the standard way to do that is use an existential wrapper: Does this relate to the basket of fruit problem in object oriented languages? You created the existential wrapper to allow a multimorphic list type? When you access the

Re: [Haskell-cafe] libSDL [Tetris]

2007-11-22 Thread Andrew Coppin
Bit Connor wrote: Hello Andrew, ...yep, configure fails because it can't find sh. (Again.) This error can safely be ignored on windows. Apparently so. (A bit confusing then, no?) I'm rather loathed to install a Unix emulator just so I can install things from Hackage.

Re: [Haskell-cafe] Re: More problems [Tetris]

2007-11-22 Thread Andrew Coppin
Brandon S. Allbery KF8NH wrote: On Nov 22, 2007, at 14:25 , Andrew Coppin wrote: It's just installing anything from Hackage which turns out to be really difficult. I understand Windows developers are a tad rare round here, so maybe that's understandable. I'd certainly be interested in

Re: [Haskell-cafe] Re: More problems [Tetris]

2007-11-22 Thread Jonathan Cast
On 22 Nov 2007, at 11:16 AM, Andrew Coppin wrote: Aaron Denney wrote: On 2007-11-21, Andrew Coppin [EMAIL PROTECTED] wrote: In short, lots of Haskell-related things seem to be extremely Unix-centric and downright unfriendly towards anybody trying to set things up on Windows. If I didn't

Re: [Haskell-cafe] More problems [Tetris]

2007-11-22 Thread Andrew Coppin
Bulat Ziganshin wrote: Hello Andrew, Wednesday, November 21, 2007, 9:26:45 PM, you wrote: Hackage. ;-) But, alas, no. That doesn't work either. The reason? Well, apparently Cabal can't find sh. cabal by itself doesn't need sh. it's either required by library installation or it as

Re: [Haskell-cafe] Re: More problems [Tetris]

2007-11-22 Thread Andrew Coppin
Aaron Denney wrote: On 2007-11-21, Andrew Coppin [EMAIL PROTECTED] wrote: In short, lots of Haskell-related things seem to be extremely Unix-centric and downright unfriendly towards anybody trying to set things up on Windows. If I didn't already know a bit about Unix, I'd be *really* stuck!

Re: [Haskell-cafe] Re: More problems [Tetris]

2007-11-22 Thread Brandon S. Allbery KF8NH
On Nov 22, 2007, at 14:25 , Andrew Coppin wrote: It's just installing anything from Hackage which turns out to be really difficult. I understand Windows developers are a tad rare round here, so maybe that's understandable. I'd certainly be interested in hearing about anything practical

Re: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Andrew Coppin
Claus Reinke wrote: I hope this is understandable what I'm trying to achieve here. not really: the only classes in haskell are type classes, and if there is any class instance missing at compile time, you won't even get to runtime, so you don't have to worry about loading instances at

Re: [Haskell-cafe] More problems [Tetris]

2007-11-22 Thread Brandon S. Allbery KF8NH
On Nov 22, 2007, at 14:22 , Andrew Coppin wrote: My first question would be: - Is there a viable alternative to sh scripts for installing packages? If there is, it would seem it's just an issue of getting everybody to migrate to it. If there isn't, it looks like we need to make one...

Re: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Leif Frenzel
I'm not 100% sure, but I think hsplugins can dynamically load compiled *.o files in this way. Correct. Not sure whether this requires the person running the main program to have GHC installed though. Yes, it does. Thanks ciao, Leif Unlike Java, there's no reflection capabilities. This

Re: [Haskell-cafe] Composing monads

2007-11-22 Thread Brent Yorgey
On Nov 22, 2007 1:22 PM, Jonathan Cast [EMAIL PROTECTED] wrote: On 22 Nov 2007, at 10:17 AM, Maurí cio wrote: Hi, If I have two computations a-IO b and b-IO c, can I join them to get an a-IO c computation? I imagine something like a liftM dot operator. This is called Kleisli

[Haskell-cafe] Source code for Visual Haskell

2007-11-22 Thread Felix Martini
Hi all, The documentation of Visual Haskell mentions that the source code is available under a BSD license. The code is not available from the download page (http://www.haskell.org/visualhaskell/downloads.html). Does anone know where to get it? ___

Re: [Haskell-cafe] libSDL [Tetris]

2007-11-22 Thread Bit Connor
On Nov 22, 2007 9:39 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Editing the cabal config file is necessary so that the SDL include files and libs can be found. ...because Windows uses DLLs instead of [whatever it is that Unix does]? The reason is that on Unix, there are standard location

Re: [Haskell-cafe] Searched for mdo on haskell.org. Found nothing.

2007-11-22 Thread Tillmann Rendel
Hi Andrew, Andrew Coppin wrote: In general, I find *most* search functions to be fairly unhelpful. Google is the shining exception to this rule; it almost always seems to figure out what you're after. I guess doing text searching is just a fundamentally difficult problem, and the guys at

  1   2   >