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
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
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
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
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:
*$
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'
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
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
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
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
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')
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
>
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 <-
Hi,
getMyLine :: IO [Char]
getMyLine = do
c <- getChar
if(c == '\n')
then return ""
elsecs <- getMyLine
return [c]
___
Haskell mailing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
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
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'
--
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
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
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?
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
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.
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
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
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
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
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::
[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 "+
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
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,
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
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
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
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
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
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
_
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
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
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
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
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
>
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)
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 ::
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
> > >
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
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:
>
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
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
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
> 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
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$
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
> $ 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.
>
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
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:
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
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 <-
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
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
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
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
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
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/
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
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 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 - 100 of 297 matches
Mail list logo