Re: [Haskell] Security problem of email registration page

2018-02-27 Thread Thomas Jakway
e, I become aware of the problem that https://mail.haskell.org/mailman/listinfo/haskell send a password to http://mail.haskell.org/cgi-bin/mailman/subscribe/haskell. Probably it means this page will send a password without encryption. Could you use https instead of http, or remove this duplicate pa

Re: [Haskell] Security problem of email registration page

2018-02-27 Thread Thomas Jakway
of the problem that https://mail.haskell.org/mailman/listinfo/haskell send a password to http://mail.haskell.org/cgi-bin/mailman/subscribe/haskell. Probably it means this page will send a password without encryption. Could you use https instead of http, or remove this duplicate page? I had used

[Haskell] Security problem of email registration page

2018-02-25 Thread 姓名
Hi there, I become aware of the problem that https://mail.haskell.org/mailman/listinfo/haskell send a password to http://mail.haskell.org/cgi-bin/mailman/subscribe/haskell. Probably it means this page will send a password without encryption. Could you use https instead of http, or remove this

Re: [Haskell] problem installing Stack on Ubuntu Virtual Machine

2016-12-03 Thread Michael Snoyman
Adding the haskell-stack mailing list, that's more focused than haskell@haskell.org. Just leaving this message on that mailing list in case someone in the future wonders where this conversation is moving to. Short answer: try adding the following to ~/.stack/config.yaml: package-indices: - name: H

[Haskell] problem installing Stack on Ubuntu Virtual Machine

2016-12-03 Thread Nikos Karagiannidis
Hi all, I am tryning to install Stack on an 64-bit Ubuntu VM (Ubuntu 16.04.1 LTS). I have followed strictly all the steps that are mentioned in: https://docs.haskellstack.org/en/stable/install_and_upgrade/#ubuntu the installation completes OK and I get the following stack version installed: *$

Re: [Haskell] Constraint Satisfaction Problem

2015-03-04 Thread Henning Thielemann
On Wed, 4 Mar 2015, K Sai Anirudh wrote: Hello, I tried to solve simple constraint satisfaction problem. This is my code "  http://pastebin.com/VAaRYSEA "; . This gives solution for present list of domains, but when I change the domain of 'd' in the list 'ld'

[Haskell] Constraint Satisfaction Problem

2015-03-03 Thread K Sai Anirudh
Hello, I tried to solve simple constraint satisfaction problem. This is my code " http://pastebin.com/VAaRYSEA " . This gives solution for present list of domains, but when I change the domain of 'd' in the list 'ld' then I get error. I think the error is in line

[Haskell] Book announcement: Robert Kowalski, LOGIC FOR PROBLEM SOLVING, REVISITED

2015-01-19 Thread Jon Sneyers
New Book Robert Kowalski LOGIC FOR PROBLEM SOLVING, REVISITED ISBN 9783837036299 Also available as E-Book http://books.google.de/books?id=6vh1BQAAQBAJ&hl=en Algorithm = Logic + Control Robert Kowalski revisits his classic text on Computational Logic in the light of subseq

[Haskell] list problem on projects.haskell.org

2011-11-27 Thread Ganesh Sittampalam
Hi, There was a problem with the mailman daemon on projects.haskell.org which meant that mail wasn't delivered from around Nov 11th till yesterday (Nov 26th). It looks like the mail was correctly queued up during that period and was all delivered when the daemon was restarted yest

Re: [Haskell] Re: Help : A problem with IO

2008-11-27 Thread abdullah abdul Khadir
Thanks all, I got it working finally. What did i learn ? a) I need to put a do after else for more than one instruction (?) b) All similar type of questions are to be redirected to haskell-beginner and haskell-cafe Points noted. Thank you once again, Abdullah Abdul Khadir On Wed

Re: [Haskell] Re: Help : A problem with IO

2008-11-26 Thread Chris Eidhof
On 26 nov 2008, at 17:18, abdullah abdul Khadir wrote: Hi, The function getMyLine written by me is intended for getting a complete string from the standard input. import IO getMyLine :: IO [Char] getMyLine = do c <- getChar if(c == '\n')

Re: [Haskell] Re: Help : A problem with IO

2008-11-26 Thread Axel Simon
Hi Abdullah, On Wed, 2008-11-26 at 21:48 +0530, abdullah abdul Khadir wrote: > Hi, > > The function getMyLine written by me is intended for getting a > complete string from the standard input. > > import IO > > getMyLine :: IO [Char] > getMyLine = do > c <- getChar >

[Haskell] Re: Help : A problem with IO

2008-11-26 Thread abdullah abdul Khadir
Hi, The function getMyLine written by me is intended for getting a complete string from the standard input. import IO getMyLine :: IO [Char] getMyLine = do c <- getChar if(c == '\n') then return "" elsecs <-

[Haskell] Help : A problem with IO

2008-11-26 Thread abdullah abdul Khadir
Hi, getMyLine :: IO [Char] getMyLine = do c <- getChar if(c == '\n') then return "" elsecs <- getMyLine return [c] ___ Haskell mailing

[Haskell] Problem with installing wxHaskell

2008-10-28 Thread nlv
Hello. I cannot install wxHaskell. I've installed wxX11-2.8.8 and tried to install wxcore-0.10.5. But on "make" I've got: wxc/include/wrapper.h:151: error: invalid use of undefined type ‘struct wxDropTarget’ /usr/local/include/wx-2.8/wx/window.h:60: error: forward declaration of ‘struct wxDrop

Re: [Haskell] A problem with overlapping instances and super-classes

2008-06-10 Thread Claus Reinke
Yes indeed, this is one of those "well-known" (ie not at all well known, but folk lore) problems with overlapping instances, at least in programs where different instances can be in scope at different times. I think these examples are subtly different (eg, some trip up Hugs as well, some only GH

Re: [Haskell] A problem with overlapping instances and super-classes

2008-06-10 Thread Ian Lynagh
On Mon, Jun 09, 2008 at 09:21:02AM +0100, Simon Peyton-Jones wrote: > > This isn't great, but it's not really different than is the case for > non-overlapping instances. Suppose module B1 declares 'instance C T', > and uses that instance; and module B2 declares a *different* 'instance > C T', and

Re: [Haskell] A problem with overlapping instances and super-classes

2008-06-09 Thread Claus Reinke
This isn't great, but it's not really different than is the case for non-overlapping instances. Suppose module B1 declares 'instance C T', and uses that instance; and module B2 declares a *different* 'instance C T', and uses that instance; and Main imports B1 and B2, but does not use either insta

RE: [Haskell] A problem with overlapping instances and super-classes

2008-06-09 Thread Simon Peyton-Jones
other (less modular) way: first find all instance decls, and only then compile the program. But this destroys modular compilation. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Iavor Diatchki | Sent: 07 June 2008 23:12 | To: Haskell users | Subject: [Has

[Haskell] A problem with overlapping instances and super-classes

2008-06-07 Thread Iavor Diatchki
Hello, (you should be able to copy and paste the code in this email into two modules called A and B to try it out) > {-# LANGUAGE OverlappingInstances #-} > module A where This module, together with module 'B', illustrates a problem in some implementations of overlapping ins

Re: [Haskell] www.haskell.org Problem?

2008-05-03 Thread Jake Mcarthur
On May 3, 2008, at 11:09 AM, Dominic Steinitz wrote: Is there a problem on the server? I appears that all of haskell.org is down. - Jake ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] www.haskell.org Problem?

2008-05-03 Thread Dominic Steinitz
I'm doing darcs get http://www.haskell.org/crypto at the moment but it's just hanging. Is there a problem on the server? Thanks, Dominic. ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] problem with hs-plugins 1.1 on Windows: _WaitForSingleObject

2007-12-17 Thread Duncan Coutts
On Mon, 2007-12-17 at 11:08 -0800, Conal Elliott wrote: > I compiled a fresh darcs-get of the latest hs-plugins (through patch > 209). it all compiles fine, but the tests die with complaints like > this one: > > Any suggestions? Try contacting the maintainer of the package. In the plugins.ca

[Haskell] problem with hs-plugins 1.1 on Windows: _WaitForSingleObject

2007-12-17 Thread Conal Elliott
I compiled a fresh darcs-get of the latest hs-plugins (through patch 209). it all compiles fine, but the tests die with complaints like this one: +Main.exe: +c:/ghc/ghc-6.8.1.20071102/lib\base-3.0.0.0/HSbase-3.0.0.0.o: unknown symbol `_WaitForSingleObject' +Main.exe: user error (resolv

Re: [Haskell] Garbage collection problem

2007-11-05 Thread Ketil Malde
Jinping Zhang <[EMAIL PROTECTED]> writes: > HI,can anybody help me with the following garbage collection problem ? It's probably not a problem with garbage collecting as such, but rather that you don't have any. In other words, your program is retaining too much data. Often

[Haskell] Garbage collection problem

2007-11-05 Thread Jinping Zhang
HI,can anybody help me with the following garbage collection problem ? I'm trying to develop a test tool which can generate test data systematically for Haskell program, I have finished most of the work so far, however,while testing, the process would be interrupted because of the ga

[Haskell] Brainstorming package compatibility problem

2007-10-25 Thread Bulat Ziganshin
i've forwarded this message from libraries list because i think it's very important topic for Haskell growth. please answer only to [EMAIL PROTECTED] This is a forwarded message From: Simon Marlow <[EMAIL PROTECTED]> ===8<==Original message text=== Duncan and I have start

Re: [Haskell] Where's the problem ?

2007-07-03 Thread Rome
w.romeinf04.de > > but only with german comments, because this is my master thesis. > > Now the problem: > My program computes using the schoenhage-strassen multiüply-subroutine the > output everytime only until the 32777th Digit, but then it holds without > an error message

[Haskell] Where's the problem ?

2007-07-03 Thread Rome
this is my master thesis. Now the problem: My program computes using the schoenhage-strassen multiüply-subroutine the output everytime only until the 32777th Digit, but then it holds without an error message. Windows Task manager tells me CPU Usage 100% and Memory Allocation is increasing. Profiling

Re: [Haskell] cabal-upload build problem

2007-02-19 Thread Duncan Coutts
On Mon, 2007-02-19 at 22:39 +, Paul Johnson wrote: > I want to upload a package to Hackage. I tried installing cabal-upload, > but got the following error: > > ! Preprocessing executables for cabal-upload-0.2... > ! Building cabal-upload-0.2... > ! > ! src/CabalUpload.hs:7:7: > !Could no

[Haskell] cabal-upload build problem

2007-02-19 Thread Paul Johnson
I want to upload a package to Hackage. I tried installing cabal-upload, but got the following error: ! Preprocessing executables for cabal-upload-0.2... ! Building cabal-upload-0.2... ! ! src/CabalUpload.hs:7:7: !Could not find module `Distribution.Compat.FilePath': !it is hidden (in pa

Re: [Haskell] Problem compiling happy 1.15

2007-02-13 Thread Bryan O'Sullivan
Rob Hoelz wrote: Is my configuration messed up or something? Looks like you're using ghc 6.6 with an old version of happy. Use happy 1.16 instead. http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Problem compiling happy 1.15

2007-02-13 Thread Rob Hoelz
I downloaded the source for happy 1.15, and when I run make, this pops up: /usr/bin/ghc -H16m -O -cpp -fglasgow-exts -O-c LALR.lhs -o LALR.o -ohi LALR.hi LALR.lhs:626:34: Not in scope: `bounds' make[3]: *** [LALR.o] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all] Error 1 make[1]: Leavin

[Haskell] ambiguous (partially defined) type problem / active objects

2006-09-12 Thread Maarten
ially ambiguous, I'm not using that particular part in related function calls. So in some ways I think there is nothing to complain. Is there a way to resolve this? Are there better/easier solutions to this problem? My solution so far is as follows (see code is below): The active nodes have

[Haskell] Re: [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Benjamin Franksen
L. J. wrote: > Hi, I use the operation 'readFile' for obtain information locates on > a file. When I try to write another information on the same file, I > obtain this error message: "openFile: permision denied". I found this: > "The readFile operation holds a semi-closed handle on the file until

Re[4]: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Bulat Ziganshin
Hello John, Sunday, August 27, 2006, 5:45:21 PM, you wrote: >> return $! tail mates_str > But you need to evaluate the result of readFile all the way to the end--you > need to use a function that traverses the entire file contents. Otherwise > the file will be left open to read the bit you haven'

Re: Re[2]: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Udo Stenzel
Bulat Ziganshin wrote: > > length mates_str `seq` return () > > it's the same. i recommend you to use: > > return $! tail mates_str > > 'tail' should be slightly faster than 'len' ...but also slightly less correct. You probably meant 'last'. (But it's still an ugly and dangerous programming

Re: Re[2]: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread John Hughes
Hello L., Sunday, August 27, 2006, 12:43:24 PM, you wrote: > length s `seq` writeFile f ("hello"++s) length mates_str `seq` return () it's the same. i recommend you to use: return $! tail mates_str $! defined as f$!x = x `seq` f x 'tail' should be slightly faster than 'len' --

Re[2]: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Bulat Ziganshin
Hello L., Sunday, August 27, 2006, 12:43:24 PM, you wrote: >> > length s `seq` writeFile f ("hello"++s) > length mates_str `seq` return () it's the same. i recommend you to use: return $! tail mates_str $! defined as f$!x = x `seq` f x 'tail' should be slightly faster than 'len' -- Be

Re: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread L. J.
On 8/27/06, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote: djsenda: > Hi, I use the operation 'readFile' for obtain information locates on > a file. When I try to write another information on the same file, I > obtain this error message: "openFile: permision denied". I found this: > "The readFil

Re: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread L. J.
use it in my aplication because I read the file in one function, I compute the results with the readed information and, finally, I wrote this results in another function (in this moment I do not have the readed string, I have my structured data). How can I use this `seq` with different functions?

Re: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Udo Stenzel
L. J. wrote: > Hi, I use the operation 'readFile' [...] > > How can I break that semi-closed handle for to write in the > preaviously readed file? Thank you. Not at all. But you can get the same effect you get from 'readFile' if you use 'openFile' and 'hGetContents'. If you do the latter, you c

Re: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread L. J.
On 8/27/06, John Hughes <[EMAIL PROTECTED]> wrote: > Hi, I use the operation 'readFile' for obtain information locates on > a file. When I try to write another information on the same file, I > obtain this error message: "openFile: permision denied". I found this: > "The readFile operation hold

[Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-26 Thread L. J.
Hi, I use the operation 'readFile' for obtain information locates on a file. When I try to write another information on the same file, I obtain this error message: "openFile: permision denied". I found this: "The readFile operation holds a semi-closed handle on the file until the entire contents o

Re: [Haskell] Problem with types.

2006-08-16 Thread Jared Updike
haskell-cafe@haskell.org is usually a better venue for these sorts of questions. People there love helping people learn Haskell. And when I try to load it to GHCi I get an error (there is also plenty of others but they look the same): couldn't match Int against t t1 This error occurs because

Re: [Haskell] Problem with types.

2006-08-16 Thread Martin Grabmueller
Szymon Ząbkiewicz wrote: > Hi! > I'm new to Haskell and FP so i've got some problems. I wrote this code : > > getNr :: Int -> Int > getNr x = do > putStrLn ("enter " ++ x ++ " number:") > nr <- getLine > return nr > > And when I try to load it to GHCi I get an error (there is also ple

[Haskell] Problem with types.

2006-08-15 Thread Szymon Ząbkiewicz
Hi!I'm new to Haskell and FP so i've got some problems. I wrote this code :getNr :: Int -> IntgetNr x = do    putStrLn ("enter " ++ x ++ " number:")    nr <- getLine    return nr And when I try to load it to GHCi I get an error (there is also plenty of others but they look the same):couldn't match

Re: [Haskell] Problem with comboBox

2006-08-14 Thread L. J.
On 8/15/06, Duncan Coutts <[EMAIL PROTECTED]> wrote: On Mon, 2006-08-14 at 20:36 +0200, L. J. wrote: > I have send this mail to the [EMAIL PROTECTED] mailing list. I do not > know if this list is active, so I reply the mail in this one. If the > other list is active, I'

Re: [Haskell] Problem with comboBox

2006-08-14 Thread L. J.
On 8/14/06, Piotr Kalinowski <[EMAIL PROTECTED]> wrote: On 14/08/06, L. J. <[EMAIL PROTECTED]> wrote: > Hi, i'm making my first graphic interface program with Haskell. I use > Glade and Gtk+2.0. I create an empty comboBox with Glade and I want to > add items (strings) in run time (by means of the

Re: [Haskell] Problem with comboBox

2006-08-14 Thread Duncan Coutts
On Mon, 2006-08-14 at 20:36 +0200, L. J. wrote: > I have send this mail to the [EMAIL PROTECTED] mailing list. I do not > know if this list is active, so I reply the mail in this one. If the > other list is active, I'm sorry. No problem. :-) The [EMAIL PROTECTED] mailing list w

Re: [Haskell] Problem with comboBox

2006-08-14 Thread Piotr Kalinowski
On 14/08/06, L. J. <[EMAIL PROTECTED]> wrote: Hi, i'm making my first graphic interface program with Haskell. I use Glade and Gtk+2.0. I create an empty comboBox with Glade and I want to add items (strings) in run time (by means of the haskell code). I tried with the functions 'comboBoxAppendText

[Haskell] Problem with comboBox

2006-08-14 Thread L. J.
I have send this mail to the [EMAIL PROTECTED] mailing list. I do not know if this list is active, so I reply the mail in this one. If the other list is active, I'm sorry. Hi, i'm making my first graphic interface program with Haskell. I use Glade and Gtk+2.0. I create an empty comboBox with Glad

[Haskell] problem building syb-generics

2006-07-04 Thread Matthew Pocock
Hi, I had some trouble getting syb-generics 2.9 to compile with ghc 6.5 (don't ask - I should probably be waiting for a stable release). I fixed the first problem by replacing a definition with in-line type info by splitting the type out, although I am not sure that I have done it right

Re: [Haskell] Problem with constructing instances for a class Pair

2005-12-24 Thread Bulat Ziganshin
ts Char BitSet where ... instance (Hashable e, Collects a ce) => Collects e (Array Int ce) where ... may be you can solve your problem by using {-# OPTIONS_GHC -fglasgow-exts #-} class P b c abc | abc -> b, abc -> b where outl :: abc -> b outr :: abc -> c ma

[Haskell] Problem with constructing instances for a class Pair

2005-12-23 Thread Frank
i want the operations on pairs to work for lists applying to each pair in the list. i prefer to achieve this with overloading, using classes and instances i cannot get from the code for the ordinary case: class P a where outl :: a b c -> b

Re: [Haskell] Type problem

2005-12-13 Thread Emil Axelsson
on of GADTs, which will be removed in GHC 6.6. Is there any workaround, such as coercing the type of the value function? I've had the same problem myself. The workaround is to replace some of type-class constraints with "witness" GADTs. The code I attached shows how you can do it.

Re: [Haskell] Type problem

2005-12-13 Thread Tomasz Zielonka
On Tue, Dec 13, 2005 at 10:42:15AM +0100, Tomasz Zielonka wrote: > On Tue, Dec 13, 2005 at 09:46:31AM +0100, Emil Axelsson wrote: > > Is this just a limitation of the current GATDs, or is it unreasonable of me > > to expect this to work? > > AFAIK it is a current limitation of GADTs, which will b

Re: [Haskell] Type problem

2005-12-13 Thread Tomasz Zielonka
rcing the type of the value function? I've had the same problem myself. The workaround is to replace some of type-class constraints with "witness" GADTs. The code I attached shows how you can do it. I chose to make HasX a GADT, and introduce the HasX' type-class, but the latter is o

Re: [Haskell] Type problem

2005-12-13 Thread Emil Axelsson
of that class. Val is my value/pattern data type. P represents a primitive value and T2 is used to make structure. X represents the unconstrained value or a wildcard pattern. It can only be used for types in HasX. The problem is the commented line in the value function. I want to use the xVal met

[Haskell] Type problem

2005-12-13 Thread Emil Axelsson
at have an unconstrained value (xVal). Number is a typical member of that class. Val is my value/pattern data type. P represents a primitive value and T2 is used to make structure. X represents the unconstrained value or a wildcard pattern. It can only be used for types in HasX. The problem is the

RE: [Haskell] GADT type inference problem

2005-12-01 Thread Simon Peyton-Jones
2005 05:57 | To: haskell@haskell.org | Subject: [Haskell] GADT type inference problem | | | Let us consider the following simple code | | > {-# OPTIONS -fglasgow-exts #-} | > | > module Foo where | > | > data Term a where | >B:: Bool -> Term Bool | >C::

Re: [Haskell] GADT type inference problem

2005-11-30 Thread David Menendez
[EMAIL PROTECTED] writes: > > Let us consider the following simple code > > > {-# OPTIONS -fglasgow-exts #-} > > > > module Foo where > > > > data Term a where > >B:: Bool -> Term Bool > >C:: Term Bool -> Term t -> Term t > >I:: Int -> Term Int > > > > shw (I t) = ("I "+

[Haskell] GADT type inference problem

2005-11-30 Thread oleg
e Term Int... It seems the last clause of shw confuses GHCi: if we remove it, the inferred type of shw is "Term a -> String -> [Char]", as one would expect. That is not a type expression printing problem: *Foo> shw (I 1) :1:5: Couldn't match `Bool' aga

Re[2]: [Haskell] WASH-Problem was Re: Haskell users survey--please respond!

2005-11-10 Thread Bulat Ziganshin
Hello John, Wednesday, November 09, 2005, 1:40:13 PM, you wrote: >>BTW, is there a way to update my entry? I forgot to mention one of the >>best tools I use - Parsec :-( JH> I'm afraid not, because there's no record of which is YOUR entry. I JH> suppose I could have asked for an email address,

Re: [Haskell] WASH-Problem was Re: Haskell users survey--please respond!

2005-11-09 Thread Tomasz Zielonka
On Wed, Nov 09, 2005 at 11:40:13AM +0100, John Hughes wrote: > I'm afraid not, because there's no record of which is YOUR entry. I > suppose I could have asked for an email address, but not everybody likes > to supply that, so I thought it better to keep the whole thing > anonymous. (Not to worr

Re: [Haskell] WASH-Problem was Re: Haskell users survey--please respond!

2005-11-09 Thread John Hughes
Tomasz Zielonka wrote: The tools list is extended automatically, after a response? There is an odd entry "Parsec, HOpenGL" Someone hasn't read the instructions :-) BTW, is there a way to update my entry? I forgot to mention one of the best tools I use - Parsec :-( I'm afraid not, b

Re: [Haskell] WASH-Problem was Re: Haskell users survey--please respond!

2005-11-09 Thread Tomasz Zielonka
On Wed, Nov 09, 2005 at 11:21:02AM +0100, Christian Maeder wrote: > I've no idea and could not reproduce the bug. Our program is at > http://www.informatik.uni-bremen.de/cgi-bin/cgiwrap/luettich/hets.cgi > > Enter i.e "sort s" or "spec S = {}" as specification. I did and I saw a screen with a re

Re: [Haskell] WASH-Problem was Re: Haskell users survey--please respond!

2005-11-09 Thread Christian Maeder
Tomasz Zielonka wrote: Does it happen when you modify the cgi-program in the middle of a session? This is the biggest problem with WASH - to be able to rebuild the state from session log it needs the program structure to be constant. I work around it by copying the current cgi-program at the

Re: [Haskell] WASH-Problem was Re: Haskell users survey--please respond!

2005-11-09 Thread Tomasz Zielonka
On Wed, Nov 09, 2005 at 10:52:51AM +0100, Christian Maeder wrote: > Aaron Denney wrote: > >I hit "Submit response and view previous responses" and it says > >"Unspecified action" and a "Try again..." hyperlink. > > I have the same problem eve

[Haskell] WASH-Problem was Re: Haskell users survey--please respond!

2005-11-09 Thread Christian Maeder
Aaron Denney wrote: I hit "Submit response and view previous responses" and it says "Unspecified action" and a "Try again..." hyperlink. I have the same problem even with our own cgi-program based on WASH and ghc-6.4.1 Cheers Christian _

[Haskell] Problem with superclass entailment in "A Static Semantics for Haskell"

2005-10-28 Thread Stefan Wehr
Hi all, I believe there is a problem in the rule for instance declarations in "A Static Semantics For Haskell" [1] because the premise which ensures that instances for all superclasses are defined seems to hold trivially. [2] seems to have the same problem. I now describe the problem

Re: [Haskell] logic problem

2005-10-26 Thread Wolfgang Jeltsch
Am Mittwoch, 26. Oktober 2005 02:36 schrieb [EMAIL PROTECTED]: > In that case I get an "illegal instruction" error and hugs exits. This is a bug in Hugs but your code is incorrect, too. You get into infinite recursion for some argument values and I suppose, Hugs doesn't handle infinite recursio

Re: [Haskell] logic problem

2005-10-25 Thread Gour
Robert Dockins ([EMAIL PROTECTED]) wrote: > Try a total rather than a partial function for f. You can just add a > default clause to the end, like > > f _ = 0 btw, the above definition is in the text of the 4.9 exercise ;) Sincerely, Gour -- Registered Linux User | #278493 GPG Public Key

Re: [Haskell] logic problem

2005-10-25 Thread Robert Dockins
0 > f 1 = 44 >f 2 = 5 >f 9 = 8 Most likely your problem is that f is only defined for input values 0, 1, 2 and 9. If you call f with any other value, you will end up with an error. >this works except when f n > n. In that case I get an "illegal >instruction

Re: [Haskell] logic problem

2005-10-25 Thread Marco Tulio Gontijo e Silva
illegal >instruction" error and hugs exits. >I'm pretty sure this is a logic problem. Could someone point me >in the right direction so I can think about this problem correctly. >Here is my code > >maxOverf :: Int -> Int >maxOverf m >

[Haskell] logic problem

2005-10-25 Thread michael
quot; error and hugs exits. I'm pretty sure this is a logic problem. Could someone point me in the right direction so I can think about this problem correctly. Here is my code maxOverf :: Int -> Int maxOverf m | f m > m= (f m) | otherwise = (maxOverf m-1)

Re: [Haskell] Ambiguity problem

2005-07-22 Thread Wolfgang Jeltsch
Am Freitag, 22. Juli 2005 15:56 schrieb Mads Lindstrøm: > Hi Wolfgang > > Thank you very much for the reply. I added an extra parameter to the > function, so the code now looks like: > > foo :: (Data a) => a -> Constr -> Int > foo idType = (numChildren idType) . fromConstr > > numChildren ::

Re: [Haskell] Ambiguity problem

2005-07-22 Thread Mads Lindstrøm
8 schrieb Mads Lindstrøm: > > Hi > > > > I am struggling with an ambiguity problem. I have the following code: > > > foo :: Constr -> Int > > > foo = numChildren . fromConstr > > > > > > numChildren :: (Data a) => a -> Int > > >

Re: [Haskell] Ambiguity problem

2005-07-22 Thread Wolfgang Jeltsch
Am Freitag, 22. Juli 2005 14:58 schrieb Mads Lindstrøm: > Hi > > I am struggling with an ambiguity problem. I have the following code: > > foo :: Constr -> Int > > foo = numChildren . fromConstr > > > > numChildren :: (Data a) => a -> Int > > num

[Haskell] Ambiguity problem

2005-07-22 Thread Mads Lindstrøm
Hi I am struggling with an ambiguity problem. I have the following code: > foo :: Constr -> Int > foo = numChildren . fromConstr > > numChildren :: (Data a) => a -> Int > numChildren x = sum $ gmapQ (\_ -> 1) x which I thought would work, but the GHC-6.4 says: >

Re: [Haskell] Re: Haddock Problem

2005-05-16 Thread Dominic Steinitz
ible between versions (like ghc .hi files). > > > >It would be nice if haddock gave some sort of error message in this case > >rather than ignoring the file. And downloading http://www.haskell.org/ghc/docs/6.2.1/html/libraries/base/base.haddock solves the problem. Dominic. ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Re: Haddock Problem

2005-05-15 Thread Dominic Steinitz
On Sun, 2005-05-15 at 18:51 +0100, Dominic Steinitz wrote: / > Dominic Steinitz writes: />/ > />/ I've downloaded />/ http://www.haskell.org/ghc/docs/latest/html/libraries/base/base.haddock and I />/ still get the same errors. Is this incompatible with Haddock version 0.6? / Probably so because

Re: [Haskell] Re: Haddock Problem

2005-05-15 Thread Duncan Coutts
On Sun, 2005-05-15 at 18:51 +0100, Dominic Steinitz wrote: > > Dominic Steinitz writes: > > > I've downloaded > http://www.haskell.org/ghc/docs/latest/html/libraries/base/base.haddock and I > still get the same errors. Is this incompatible with Haddock version 0.6? Probably so because the curren

[Haskell] Re: Haddock Problem

2005-05-15 Thread Dominic Steinitz
> Dominic Steinitz writes: > > > I've now used the -v option and it looks like haddock > > can't find the html files even though they are there :-( > > Anyone have any ideas? > > Maybe the interface description files are broken, > incomplete, or incompatible with your Haddock version? > > b

[Haskell] Re: Haddock Problem

2005-05-15 Thread Peter Simons
Dominic Steinitz writes: > I've now used the -v option and it looks like haddock > can't find the html files even though they are there :-( > Anyone have any ideas? Maybe the interface description files are broken, incomplete, or incompatible with your Haddock version? budweis:~/work/Codec$

Re: [Haskell] Haddock Problem

2005-05-14 Thread Dominic Steinitz
l) file as "http://www.haskell.org/g...";, rather than > > ignoring it. I'd call this a user interface bug. > > > > Duncan > > I still get the same problem: > > [EMAIL PROTECTED] Codec]$ haddock Codec/Utils.hs --read-interface=base.haddock > Warning: Code

[Haskell] Haddock Problem

2005-05-14 Thread Dominic Steinitz
> $ haddock Codec/Utils.hs --read-interface=base.haddock > > In this case it would be better if Haddock gave you an error about there > being no such (local) file as "http://www.haskell.org/g...";, rather than > ignoring it. I'd call this a user interface bug. >

Re: [Haskell] Haddock Problem

2005-05-14 Thread Duncan Coutts
On Sat, 2005-05-14 at 13:05 +0100, Dominic Steinitz wrote: > Can someone point out what I am doing wrong? > > Thanks, Dominic. > > [EMAIL PROTECTED] Codec]$ haddock Codec/Utils.hs > --read-interface=http://www.haskell.org/ghc/docs/latest/html/base,/usr/share/doc/ghc-6.4/libraries/base/base.haddo

[Haskell] Haddock Problem

2005-05-14 Thread Dominic Steinitz
Can someone point out what I am doing wrong? Thanks, Dominic. [EMAIL PROTECTED] Codec]$ haddock Codec/Utils.hs --read-interface=http://www.haskell.org/ghc/docs/latest/html/base,/usr/share/doc/ghc-6.4/libraries/base/base.haddock Warning: Codec.Utils: the following names could not be resolved:

[Haskell] Re: rekursive array problem

2005-05-02 Thread Peter Simons
Andreas Fuertig writes: > fillArray ["a"] > should be something like this: > [[("a",True)],[("a",False)]] A pretty generic solution using the "Bounded" and "Enum" type classes to calculate the list of all values for a given type would be: enumAll :: (Bounded a, Enum a) => [a] enumAll = [ minB

Re: [Haskell] rekursive array problem

2005-05-02 Thread Mirko Rahn
Andreas Fuertig wrote: fillArray ["a"] [[("a",True)],[("a",False)]] fillArray ["a","b"] [[("a",True),("b",True)],[("a",False),("b",True)],[("a",True),("b",False)], [("a",False),("b",False)]] A simple solution is: fill :: [a] -> [[(a,Bool)]] fill [] = [[]] fill (x:xs) = do v <- [True,False] ; vs <-

[Haskell] rekursive array problem

2005-05-02 Thread Andreas Fuertig
Hi @ all! I have a big problem. i have a list of variables and now i need something like this fillArray ["a"] should be something like this: [[("a",True)],[("a",False)]] fillArray ["a","b"] [[("a",True),("b",True)],[(&q

Re: [Haskell] Litle problem with a haskell Function...

2004-11-03 Thread Ben Rudiak-Gould
Manuel Costa wrote: I need to do add "c" and the "c" most be append to list1 to make list1=["a","c"] Then if i input list1 the output must be ["a","c"] But i can't do it... It can't be done. Your source code defines list1 to be equal to "a", and so equal to "a" it is. It can't also be equal to som

[Haskell] Litle problem with a haskell Function...

2004-11-02 Thread Manuel Costa
Hello,I' a Haskell Newbie and i need some help about a function..My problem is to update a list of values in Runtime.For example i have a initial list:list1=3D"a"=20and a function:add::add::String->[String]add x =3D [list1] ++ [x]=20I need to do=20add "c"=20a

RE: [Haskell] Hyperlinking problem in Haddock

2004-07-22 Thread Simon Marlow
On 20 July 2004 19:40, Adrian Hey wrote: > Does anybody know how you hyperlink your Haddock to functions > whose name ends with a prime. e.g. foldl' > > I've tried.. > 'foldl\'' > and > 'foldl'' > > But neither works. In each case I get a link to foldl (unprimed > version) followed b

[Haskell] Hyperlinking problem in Haddock

2004-07-20 Thread Adrian Hey
Hello, Does anybody know how you hyperlink your Haddock to functions whose name ends with a prime. e.g. foldl' I've tried.. 'foldl\'' and 'foldl'' But neither works. In each case I get a link to foldl (unprimed version) followed by an isolated ' character. This is with Haddock v

[Haskell] Problem with HSQL 1.4

2004-07-14 Thread Alfonso
Hello,   My name is Alfonso Meléndez  I work at Escuela Colombiana de Ingeniería  in the Computer Scienca Faculty. I work with ghc 6.2.1 and I Install HSql-1.4 but when I try to run the test programs I obtain the message of mismatched interface file versions:   C:/Archivos de programa/

Re: [Haskell] Licensing problem, caused by static linking on windows

2004-07-04 Thread Ben Lippmeier
Kevin, The problem is that on Windows, GHC statically links the program with the libgmp library, which has an LGPL license. The LGPL license says that we can distribute the executable under our own terms, [...] You could write a C wrapper around a run-time loaded library. Cygwin supports dlopen

Re: [Haskell] Licensing problem, caused by static linking on windows

2004-07-02 Thread Antonio Regidor García
Maybe you can find useful information here: http://www.gnu.org/licenses/licenses.html or at least contact the FSF by e-mail. Antonio Regidor Garcia --- MR K P SCHUPKE <[EMAIL PROTECTED]> escribió: > Re LGPL... > > I beleive it is acceptable to supply source code on request, and > you should

Re: [Haskell] Licensing problem, caused by static linking on windows

2004-07-02 Thread MR K P SCHUPKE
Re LGPL... I beleive it is acceptable to supply source code on request, and you should make it clear in the distributed code that the source for gmp is available on request. Keean. ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailm

  1   2   3   >