[Haskell] Help lead Haskell: Executive Director sought for Haskell Foundation

2020-12-07 Thread Richard Eisenberg
Posting on behalf of the Haskell Foundation Working Group. Please forward widely! The Haskell Foundation is seeking an Executive Director. Please find the job description here: https://haskell.foundation/ ed-job-description

[Haskell] Help wanted: Postfix admin guru for Haskell.org

2019-11-09 Thread Gershom B
We've been getting increasing amounts of bounces and dropped mail for haskell.org emails (things sent hackage trustees, things sent from our wiki and hackage servers, etc). We _mainly_ have kept things working, but it looks like policies have been amped up in terms of requiring various measures. Ad

[Haskell] Help inform GHC's development priorities

2018-10-18 Thread Ben Gamari
tl;dr. Please a take a minute to express your thoughts on GHC's development priorities via this survey [1]. Hello everyone, The GHC developers want to ensure that we are working on problems that of most importance to you, the Haskell community. To this end we are surveying the community [

[Haskell] Help wanted with Wiki.Haskell.Org

2015-04-20 Thread Gershom B
One of the central repositories of knowledge in the Haskell world is the HaskellWiki (https://wiki.haskell.org). This wiki has been with the Haskell community for years, and contains a wealth of knowledge. Like other services on the haskell.org domain and with haskell.org equipment, ultimate res

Re: [Haskell] Help-me read file

2010-10-18 Thread kahl
> I have a file with 100 lists, with 100 ints. > > I have to read the file and apply the map and sort functions on lists. > > II did it to read file: > > learquivo :: FilePath -> IO ([[Int]]) > learquivo s = do >            conteudo <- readFile s >            return (read conteudo) >

Re: [Haskell] Help-me read file

2010-10-18 Thread Henning Thielemann
On Mon, 18 Oct 2010, Gilmara Pompelli wrote: Hello I have a file with 100 lists, with 100 ints. I have to read the file and apply the map and sort functions on lists. II did it to read file: learquivo :: FilePath -> IO ([[Int]]) learquivo s = do            conteudo <- readFile s            

[Haskell] Help-me read file

2010-10-18 Thread Gilmara Pompelli
Hello I have a file with 100 lists, with 100 ints. I have to read the file and apply the map and sort functions on lists. II did it to read file: learquivo :: FilePath -> IO ([[Int]]) learquivo s = do            conteudo <- readFile s            return (read conteudo) But now applying the sort

Re: [Haskell] Help with cabal and windows

2009-05-30 Thread Duncan Coutts
On Sat, 2009-05-30 at 09:06 -0700, newuser21 wrote: > Hi, I am new to haskell. BTW, in future it's better to ask these kinds of questions on the haskell-cafe mailing list. These days the main haskell mailing list is mostly for announcements etc. > I have an programm whitch i want to compile for w

[Haskell] Help with cabal and windows

2009-05-30 Thread newuser21
Hi, I am new to haskell. I have an programm whitch i want to compile for windows .It has cabal .I installed haskellplatform for windows, and runhaskell setup.lhs configure runs fine.BUT when runhaskell setup.lhs build, then errors: Could not find module `Data.Generics': it is a member of th

Re: [Haskell] Help : data & concurrent packages

2009-01-13 Thread Thorkil Naur
Hello, On Tuesday 13 January 2009 18:26, bft wrote: > Hi ! > Can someone tell me where to download the *data* and *concurrent *packages. I recall data and concurrent packages from some years back, but I would assume that they are merged into the base package nowadays where GHC-6.10.1 is the lat

[Haskell] Help : data & concurrent packages

2009-01-13 Thread bft
Hi ! Can someone tell me where to download the *data* and *concurrent *packages. I need them to build FranTk1.1 package ( http://www.dcs.gla.ac.uk/~meurig/FranTk/news.html) Thanks in advance! BFT frantk.conf file : Package {name = "FranTk", import_dirs = ["/local/www.people/personal/meuri

[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] help needed to test new GLFW package

2007-12-20 Thread Paul L
With the new Cabal 1.2, it's now possible to make platform dependent C code compilation. So I've made available new version of GLFW that follows standard Cabal installation steps, it's at: http://www.cs.yale.edu/homes/hl293/download/GLFW-0.2.tar.gz Note that this is VERY experimental. Help is n

Re: [Haskell] help with IOArray

2007-08-19 Thread Bulat Ziganshin
Hello robert, Sunday, August 19, 2007, 6:52:59 PM, you wrote: > I defined > newMem s = newIOArray (0, size-1) 0 > and then > x = newMem 30 i recommend you to read http://haskell.org/haskellwiki/IO_inside -- Best regards, Bulatmailto:[EMAIL PROTECTED] _

Re: [Haskell] help with IOArray

2007-08-19 Thread Bertram Felgenhauer
robert bauer wrote: > I have an IOArray, but it doesn't work the way I expected it to. > > I defined > > newMem s = newIOArray (0, size-1) 0 > > and then > > x = newMem 30 > > then > > do { >y <- x > ; v <- readIOArray y 2 > ; print v > ; writeIOArray y 2 20 > ; v <- readIOArray y 2 >

[Haskell] help with IOArray

2007-08-19 Thread robert bauer
I have an IOArray, but it doesn't work the way I expected it to. I defined newMem s = newIOArray (0, size-1) 0 and then x = newMem 30 then do { y <- x ; v <- readIOArray y 2 ; print v ; writeIOArray y 2 20 ; v <- readIOArray y 2 ; print v } this resulted in 0, 2 as expected. howeve

Re: [Haskell] help -- need a random number

2007-04-26 Thread Marc A. Ziegert
that is exact the way, how i had learned about the state monads like IO and Maybe. that was even before i understood the [] monad, folding and using Random; i don't remember when that was... ghc-5.xx age. in my opinion, unsafePerformIO is a good learning tool, as soon as you use it tricky to an

Re: [Haskell] help -- need a random number

2007-04-26 Thread Johannes Waldmann
import System.IO.Unsafe (unsafePerformIO,unsafeInterleaveIO) Whoa! I'd be very cautious recommending these for newbies ... ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] help -- need a random number

2007-04-26 Thread Marc A. Ziegert
module Dice where import System.Random import System.IO.Unsafe (unsafePerformIO,unsafeInterleaveIO) import Data.List (unfoldr) dice4,dice6,dice8,dice10,dice12,dice20,dice666 :: [Int] dice4 = randomRs (1,4) (read "foo"::StdGen) dice6 = randomRs (1,6) (mkStdGen 5) dice8 = randomRs (1,8) (unsafePerf

Re: [Haskell] help -- need a random number

2007-04-26 Thread Johannes Waldmann
I need some random numbers. in the IO Monad, hiding the use of a generator do x <- randomRIO (0, 1 :: Double) ; print x you can also make the state explicit: do g0 <- getStdGen ; let { ( x, g1 ) = randomR ( 0, 1::Double) g0 } ; print x a RandomGen is actually the state object for the ge

[Haskell] help -- need a random number

2007-04-26 Thread robert bauer
Hi, I need some random numbers. The documentation identifies StdGen, but I can't figure out how to invoke it. The documentation is great in every way, except an actual example that I can essentially cut and paste. Thanks ___ Haskell mailing list Has

Re: [Haskell] Help needed interrupting accepting a network connection

2006-12-04 Thread Bjorn Bringert
On 2 dec 2006, at 22.13, Cat Dancer wrote: I'd like to write a server accepting incoming network connections that can be gracefully shutdown. When the server is asked to shutdown, it should stop accepting new connections, finish processing any current connections, and then terminate. Clients c

Re: [Haskell] Help needed interrupting accepting a network connection

2006-12-03 Thread Chris Kuklewicz
After more testing I found an ugly problem that a child could be killed before the finally installed the handler that calls (putMVar doneMVar ()) Thus I have added slightly more paranoid code to ensure that the child is running before exposing the (T)MVar/ThreadId to the rest of the application.

Re: [Haskell] Help needed interrupting accepting a network connection

2006-12-03 Thread Chris Kuklewicz
I realized there is another problem, since my code holds onto the ThreadId's the thread data structures may or may not be getting garbage collected and for a long running server the list of children grows without bound. So I changed it to periodically clean out the finished child threads from th

Re: [Haskell] Help needed interrupting accepting a network connection

2006-12-03 Thread Chris Kuklewicz
Cat Dancer wrote: >> > I'd certainly be most happy not to use asynchronous exceptions as the >> > signalling mechanism, but how would you break out of the accept, >> > except by receiving an asynchronous exception? >> >> Short Version: You trigger a graceful exit using a TVar... >> ...and then you

Re: [Haskell] Help needed interrupting accepting a network connection

2006-12-02 Thread Chris Kuklewicz
Cat Dancer wrote: > On 12/2/06, Chris Kuklewicz <[EMAIL PROTECTED]> wrote: >> Hi, I have taken a crack at this. The best thing would be not to use the >> asynchronous exceptions to signal the thread that calls accept. > > I'd certainly be most happy not to use asynchronous exceptions as the > sig

Re: [Haskell] Help needed interrupting accepting a network connection

2006-12-02 Thread Cat Dancer
On 12/2/06, Chris Kuklewicz <[EMAIL PROTECTED]> wrote: Hi, I have taken a crack at this. The best thing would be not to use the asynchronous exceptions to signal the thread that calls accept. I'd certainly be most happy not to use asynchronous exceptions as the signalling mechanism, but how wo

Re: [Haskell] Help needed interrupting accepting a network connection

2006-12-02 Thread Chris Kuklewicz
Hi, I have taken a crack at this. The best thing would be not to use the asynchronous exceptions to signal the thread that calls accept. And use STM more, since the exception semantics are much easier to get right. But a few minor changes gets closer to what you want. First, the main problem yo

[Haskell] Help needed interrupting accepting a network connection

2006-12-02 Thread Cat Dancer
I'd like to write a server accepting incoming network connections that can be gracefully shutdown. When the server is asked to shutdown, it should stop accepting new connections, finish processing any current connections, and then terminate. Clients can retry if they attempt to make a connection

[Haskell] help with happy/alex

2006-11-22 Thread robert bauer
Hi, I have a .y and .x file. The alex -g _.x gives me a .hs file and happy -g -a -c _.y gives me a .hs file. I then use ghc -c alex.hs to get a a .o and a .hi file. This works great. Unfortunately ghc -c happy.y doesn't work -- it says that it the module name for the lexer doesn't match. I've

Re: [Haskell] help with some basic code that doesn't work

2005-02-08 Thread Karl Hasselström
On 2005-02-07 20:36:55 +, pablo daniel rey wrote: > data Dir = Left | Right | Up | Down > data Piece = Vertical | Horizontal | CodeA | CodeB > > the error i get : > > Instances of (Eq Dir, Eq Piece) required for definition of chgDir You try to compare Dir and Piece values without having told

Re: [Haskell] help with some basic code that doesn't work

2005-02-08 Thread Malcolm Wallace
Matthew Walton <[EMAIL PROTECTED]> writes: > (==) works on types which are members of the Eq typeclass. You can > define this instance manually, or, since your type is nice and simple, ^^ > you can get Haskell to derive it for

Re: [Haskell] help with some basic code that doesn't work

2005-02-08 Thread Matthew Walton
pablo daniel rey wrote: hello i'm new to haskell so i'm sorry if this is a stupid question, but i'm having problems with some basic code. the code : data Maybe Dir = Just Dir | Nothing data Dir = Left | Right | Up | Down data Piece = Vertical | Horizontal | CodeA | CodeB flow = [(Horizontal, Left,

[Haskell] help with some basic code that doesn't work

2005-02-07 Thread pablo daniel rey
hello i'm new to haskell so i'm sorry if this is a stupid question, but i'm having problems with some basic code. the code : data Maybe Dir = Just Dir | Nothing data Dir = Left | Right | Up | Down data Piece = Vertical | Horizontal | CodeA | CodeB flow = [(Horizontal, Left, Left),      (Horizont

Re: [Haskell] Help on Arrows

2005-01-15 Thread David Menendez
Georg Martius writes: > Hi folks, > > I would like to use Arrows, but I just can't figure out how to > actually use them. I looked at various documentations including the > API doc [1], the Wiki [2], [3], and some random pages on the net but > didn't find a single simple example that tells me how

[Haskell] Help on Arrows

2005-01-15 Thread Georg Martius
Hi folks, I would like to use Arrows, but I just can't figure out how to actually use them. I looked at various documentations including the API doc [1], the Wiki [2], [3], and some random pages on the net but didn't find a single simple example that tells me how to apply an Arrow to a value. As

Re: [Haskell] Help in understanding a type error involving forall and class constraints

2004-06-30 Thread MR K P SCHUPKE
> Then we get the problem when we use difST in distString. I no such problem. The Glorious Glasgow Haskell Compilation System, version 6.3 ghc -H32m -Wall -O2 -fvia-C -optc-O2 -optc-march=pentium3 -optc-mfpmath=sse -fexcess-precision -fliberate-case-threshold100 -funbox-strict-fields -threaded

Re: [Haskell] Help in understanding a type error involving forall and class constraints

2004-06-29 Thread Duncan Coutts
On Tue, 2004-06-29 at 23:38, MR K P SCHUPKE wrote: > Try this: > > distString :: String -> String -> Int > distString s0 s1 = let a = runST (difST s0 s1) >in a!(1,1) > > difST :: MArray (STUArray s) Int (ST s) => String -> String -> ST s (UArray > (Int,Int) Int) > difST s0 s1 = do >b@(_,

Re: [Haskell] Help in understanding a type error involving forall and class constraints

2004-06-29 Thread MR K P SCHUPKE
Try this: distString :: String -> String -> Int distString s0 s1 = let a = runST (difST s0 s1) in a!(1,1) difST :: MArray (STUArray s) Int (ST s) => String -> String -> ST s (UArray (Int,Int) Int) difST s0 s1 = do b@(_,br) <- return $ (\x1 y1 -> ((0,0),(x1,y1))) (length s0) (length s1)

Re: [Haskell] Help in understanding a type error involving forall and class constraints

2004-06-29 Thread Duncan Coutts
On Tue, 2004-06-29 at 18:42, MR K P SCHUPKE wrote: > Erm, something I remember about needing MArrays... Here's something > which does the same thing (cooks and MArray then freezes it - also using > STUArray... The neat thing is MArray is a class, so you can swap between > STUArray and STArray imple

Re: [Haskell] Help in understanding a type error involving forall and class constraints

2004-06-29 Thread MR K P SCHUPKE
Erm, something I remember about needing MArrays... Here's something which does the same thing (cooks and MArray then freezes it - also using STUArray... The neat thing is MArray is a class, so you can swap between STUArray and STArray implementations without changing code. This is the classic dyna

[Haskell] Help in understanding a type error involving forall and class constraints

2004-06-29 Thread Duncan Coutts
Here's a small bit of code that involves some fairly hairy class overloadings (ghc's mutable unboxed array classes) The code builds an array in the ST monad by creating a mutable array then assigning to each element and finally freezing the array and returning an immutable array. Firstly the bit

Re: Haskell help!

2003-03-26 Thread Marc Ziegert
TECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: Haskell help! > > > Currently I'm having problems with type checking due to Haskell being a > strongly typed language. In order to return all optimal solutions, my > professor suggested I create a list of

Fwd: Re: Haskell help!

2003-03-26 Thread Marc Ziegert
-- Weitergeleitete Nachricht -- Subject: Re: Haskell help! Date: Wed, 26 Mar 2003 23:57:42 +0100 From: Marc Ziegert <[EMAIL PROTECTED]> To: "Weix, Rachel Lynn" <[EMAIL PROTECTED]> i'm just programming the solution. imagine a matrix / a rectangle

Re: Haskell help!

2003-03-26 Thread Andrew J Bromage
G'day. Some general advice... On Wed, Mar 26, 2003 at 04:30:08PM -0600, Weix, Rachel Lynn wrote: > Currently I'm having problems with type checking due to Haskell being > a strongly typed language. Problems with type checking are almost never caused by Haskell being a strongly typed language.

RE: Haskell help!

2003-03-26 Thread Weix, Rachel Lynn
Title: Re: Haskell help! P.S.  The example given is for the set of sequences/strings (The,Masters) -Original Message- From: Weix, Rachel Lynn Sent: Wed 3/26/2003 4:30 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Haskell help! Currently I'm h

RE: Haskell help!

2003-03-26 Thread Weix, Rachel Lynn
Title: Re: Haskell help! Currently I'm having problems with type checking due to Haskell being a strongly typed language.  In order to return all optimal solutions, my professor suggested I create a list of tuples if they all have the same score, as indicated in my new maxSeq method

RE: Haskell help!

2003-03-25 Thread Weix, Rachel Lynn
Title: Re: Haskell help! I have since been able to figure out my problems - the algorithm for one of my methods was wrong and I found two "typos" so to speak.  I now need to figure out how to return all optimal solutions, and I have an idea as to how to start.  If I have any mor

Re: Haskell help!

2003-03-25 Thread Iavor S. Diatchki
hi, the paper i posted uses Haskell, no mutation or looping. it also uses Haskell's lazyness in a neat way. bye iavor Weix, Rachel Lynn wrote: I have since been able to figure out my problems - the algorithm for one of my methods was wrong and I found two "typos" so to speak. I now need to figu

Re: Haskell help!

2003-03-25 Thread Iavor S. Diatchki
hi, i think you might find the following paper relevant: "Algebrainc Dynamic Prorgamming" by Robert Gigerich and Carsten Meyer http://link.springer-ny.com/link/service/series/0558/papers/2422/24220349.pdf bye iavor Weix, Rachel Lynn wrote: Hi, I'm a college student trying to write a Haskell prog

Re: Haskell help!

2003-03-25 Thread Marc Ziegert
looks like a genetic algorithm, i've programmed years ago. :) i need the sourcecode to solve the problem. it seems that you "zip" the two strings together: unzip $ zip "abcde" "123" -> unzip [('a','1'),('b','2'),('c','3')] -> ("abc","123") i've no idea why you got "saaturn". - marc Am Diens

Haskell help!

2003-03-25 Thread Weix, Rachel Lynn
Title: Message Hi,   I'm a college student trying to write a Haskell program, and I'm having some problems getting the correct output.  I need to write a program which will return a set of optimally aligned sequences, with "optimal" being defined as such: mismatch or space (represented by a

Re: A plea for a little Haskell help.

1999-02-18 Thread Fergus Henderson
On 17-Feb-1999, Lennart Augustsson <[EMAIL PROTECTED]> wrote: > > > What's wrong with > > > > class Foo a b where > > write :: a -> b -> IO () > > > > ? > > Well, it's not Haskell. :-) Oh, good point . I forgot about that. Please take my mail above as a vote in favour of in

Re: A plea for a little Haskell help.

1999-02-17 Thread Fergus Henderson
On 16-Feb-1999, Michael Hobbs <[EMAIL PROTECTED]> wrote: > I'm not sure if this can be cleanly done or not. (I've been able to do > it less-than-cleanly.) What I want to do is define a class where the > instance has an option of what type of parameters some of its functions > can accept. For examp

Re: A plea for a little Haskell help.

1999-02-17 Thread Lennart Augustsson
> What's wrong with > > class Foo a b where > write :: a -> b -> IO () > > ? Well, it's not Haskell. :-) -- Lennart

Re: A plea for a little Haskell help.

1999-02-17 Thread Michael Hobbs
Fergus Henderson wrote: > > On 17-Feb-1999, Lennart Augustsson <[EMAIL PROTECTED]> wrote: > > > > > What's wrong with > > > > > > class Foo a b where > > > write :: a -> b -> IO () > > > > > > ? > > > > Well, it's not Haskell. :-) > > Oh, good point . I forgot about that. > > P

A plea for a little Haskell help.

1999-02-16 Thread Michael Hobbs
I'm not sure if this can be cleanly done or not. (I've been able to do it less-than-cleanly.) What I want to do is define a class where the instance has an option of what type of parameters some of its functions can accept. For example, say I have class Foo a where write :: a -> b -> IO () Thi

Re: Do you depend on Hugs/Haskell? Help out!

1998-12-18 Thread S. Alexander Jacobson
If the commercial side is at all useful, We are using Haskell to generate the HTML and Javascript for Shop.Com. We are using it for other non-public projects as well. -Alex- On Thu, 17 Dec 1998, Tim Sheard wrote: > Dear Haskell user, > > A group of Haskell supporters is trying to raise money

Do you depend on Hugs/Haskell? Help out!

1998-12-17 Thread Tim Sheard
Dear Haskell user, A group of Haskell supporters is trying to raise money to support the further development and maintenance of the Hugs interpreter and its integration with the GHC run-time system. The idea is not to ask for money to do research, or to add zillions of new features and extensions

Haskell help for Haskell newbie.

1995-06-26 Thread Alain M. Gaudrault
I've only recently started dabbling in Haskell, and functional programming in general, and am having a few problems, one particular to Haskell as a functional language, the other with Haskell's type classes. Just in case it matters, I'm using "interactive Haskell B. version 0.999.7 SPARC