[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.

[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

Re: [arch-haskell] help upgrading packages

2014-05-16 Thread Bardur Arantsson
On 2014-05-15 23:18, Magnus Therning wrote: On Thu, May 15, 2014 at 05:29:13PM +0200, Bardur Arantsson wrote: On 2014-05-15 11:35, Magnus Therning wrote: On Wed, May 14, 2014 at 10:47 PM, Bardur Arantsson s...@scientician.net wrote: On 2014-05-12 15:47, Magnus Therning wrote: [--snip--]

Re: [arch-haskell] help upgrading packages

2014-05-15 Thread Magnus Therning
On Wed, May 14, 2014 at 10:47 PM, Bardur Arantsson s...@scientician.net wrote: On 2014-05-12 15:47, Magnus Therning wrote: [--snip--] The same goes for me. Occasionally I revert to installing a package for the local user only, but not even then do I use `cabal install` to do that, I prefer

Re: [arch-haskell] help upgrading packages

2014-05-15 Thread Bardur Arantsson
On 2014-05-15 11:35, Magnus Therning wrote: On Wed, May 14, 2014 at 10:47 PM, Bardur Arantsson s...@scientician.net wrote: On 2014-05-12 15:47, Magnus Therning wrote: [--snip--] All I needed to install build-wrapper (which I think was the inital problem package in this thread) was to do

Re: [arch-haskell] help upgrading packages

2014-05-15 Thread Magnus Therning
On Thu, May 15, 2014 at 05:29:13PM +0200, Bardur Arantsson wrote: On 2014-05-15 11:35, Magnus Therning wrote: On Wed, May 14, 2014 at 10:47 PM, Bardur Arantsson s...@scientician.net wrote: On 2014-05-12 15:47, Magnus Therning wrote: [--snip--] All I needed to install build-wrapper (which I

Re: [arch-haskell] help upgrading packages

2014-05-14 Thread Bardur Arantsson
On 2014-05-12 15:47, Magnus Therning wrote: [--snip--] The same goes for me. Occasionally I revert to installing a package for the local user only, but not even then do I use `cabal install` to do that, I prefer running `./Setup.hs configure,build,install` myself. I do mean to look into

Re: [arch-haskell] help upgrading packages

2014-05-12 Thread Nicola Squartini
http-conduit and its dependencies moved from haskell-happstack to haskell-core and at that time the package release number reset to one. You have to manually uninstall and reinstall those packages. Nicola On Sun, May 11, 2014 at 11:49 PM, Michael Katelman katel...@gmail.comwrote: I was hoping

Re: [arch-haskell] help upgrading packages

2014-05-12 Thread Dawid Loubser
I had a similar issue with a large number of packages. I ended up removing and re-installing my entire Haskell ecosystem, and now things work again. I note the absence of certain packages like haskell-buildwrapper (which EclipseFP tools needs) - and reading the wiki, it seems confusing at this

Re: [arch-haskell] help upgrading packages

2014-05-12 Thread Nicola Squartini
On Mon, May 12, 2014 at 2:24 PM, Dawid Loubser dawid.loub...@ibi.co.zawrote: I had a similar issue with a large number of packages. I ended up removing and re-installing my entire Haskell ecosystem, and now things work again. Normally this should never happen. It's because Haskell is very

Re: [arch-haskell] help upgrading packages

2014-05-12 Thread Magnus Therning
On Mon, May 12, 2014 at 3:33 PM, Nicola Squartini tens...@gmail.com wrote: On Mon, May 12, 2014 at 2:24 PM, Dawid Loubser dawid.loub...@ibi.co.za wrote: I had a similar issue with a large number of packages. I ended up removing and re-installing my entire Haskell ecosystem, and now things

Re: [arch-haskell] help upgrading packages

2014-05-12 Thread Dawid Loubser
I'm afraid that I am not one of those 'terrifyingly clever' people you speak of, Magnus, but in the past I have had a world of pain trying to use a mixture of packages between cabal and pacman. Had a very happy time using just pacman until *haskell-buildwrapper* disappeared recently, and I could

Re: [arch-haskell] help upgrading packages

2014-05-12 Thread Magnus Therning
On Mon, May 12, 2014 at 4:02 PM, Dawid Loubser dawid.loub...@ibi.co.za wrote: I'm afraid that I am not one of those 'terrifyingly clever' people you speak of, Magnus, but in the past I have had a world of pain trying to use a mixture of packages between cabal and pacman. Had a very happy time

[arch-haskell] help upgrading packages

2014-05-11 Thread Michael Katelman
I was hoping someone might help me with an issuing I'm having doing a system upgrade. When I run pacman -Syu, I get: :: Synchronizing package databases... haskell-core is up to date haskell-happstack is up to date core is up to date extra is up to date community is up to date :: Starting full

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-27 Thread Albert Y. C. Lai
On 11-05-26 12:45 PM, Srinivasan Balram wrote: (ii) Haskell Enterprise Development i.e. how to connect commercial RDBMS and use Haskell along with SQL effectively By the time we finish adding that to a future book, enterprise programmers will have already moved to the like of NoSQL and

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-27 Thread Rick Richardson
We do have working and officially supported (by 10Gen) Haskell drivers for MongoDB. Just sayin' :) On Fri, May 27, 2011 at 3:45 PM, Albert Y. C. Lai tre...@vex.net wrote: On 11-05-26 12:45 PM, Srinivasan Balram wrote: (ii) Haskell Enterprise Development i.e. how to connect commercial

[Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Srinivasan Balram
folks: I was advised to post this request here. This is about needs of daily-grind enterprise development. Enterprise developers need 3 categories of books in Haskell urgently: (i) Haskell (CookBooks / Recipes) (ii) Haskell Enterprise Development i.e. how to connect commercial RDBMS and use

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Jason Dagit
On Thu, May 26, 2011 at 9:45 AM, Srinivasan Balram srinivasan_bal...@marlabs.com wrote: folks: I was advised to post this request here. This is about needs of daily-grind enterprise development. Enterprise developers need 3 categories of books in Haskell urgently:  (i) Haskell (CookBooks /

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Clint Moore
While it's not a solution (yet) for a book, would a section or special section in the wiki be appropriate at least in the beginning? Our small company has been collecting cookbook-like recipies and best practices for a while now but definitely not anything close to as polished or collated as a

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Jason Dagit
On Thu, May 26, 2011 at 11:17 AM, Clint Moore cl...@ivy.io wrote:  While it's not a solution (yet) for a book, would a section or special section in the wiki be appropriate at least in the beginning?  Our small company has been collecting cookbook-like recipies and best practices for a while

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Clint Moore
On Thu, May 26, 2011 at 10:57:42AM -0700, Jason Dagit wrote: Database connectivity is a weakspot still. Haskell developers don't seem to use databases nearly as often as Java developers. We have several libraries for this, takusen and hdbc come to mind. Real-World Haskell documents using

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Michael Snoyman
On Thu, May 26, 2011 at 7:45 PM, Srinivasan Balram srinivasan_bal...@marlabs.com wrote: folks: I was advised to post this request here. This is about needs of daily-grind enterprise development. Enterprise developers need 3 categories of books in Haskell urgently:  (i) Haskell (CookBooks /

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Stephen Tetley
Without support for at least extensible records and better GUI integration, you'd have a hard time convincing me to use Haskell for enterprise applications (and I use Haskell every day). It's not that Haskell isn't a fine language, it's just that doesn't have sufficient advantage on the

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Jason Dagit
On Thu, May 26, 2011 at 1:09 PM, Gaius Hammond ga...@gaius.org.uk wrote: On 26 May 2011, at 19:22, Clint Moore wrote: On Thu, May 26, 2011 at 10:57:42AM -0700, Jason Dagit wrote: Database connectivity is a weakspot still.  Haskell developers don't seem to use databases nearly as often as

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Gaius Hammond
On 26 May 2011, at 21:34, Jason Dagit wrote: On Thu, May 26, 2011 at 1:09 PM, Gaius Hammond ga...@gaius.org.uk wrote: Over in OCaml-land, I have taken it upon myself to address this: http://gaiustech.github.com/ociml/ Takusen already supports Oracle (and other rdbms) in a resource

Re: [Haskell-cafe] Enterprise Haskell -- help

2011-05-26 Thread Jason Dagit
On Thu, May 26, 2011 at 1:43 PM, Gaius Hammond ga...@gaius.org.uk wrote: On 26 May 2011, at 21:34, Jason Dagit wrote: On Thu, May 26, 2011 at 1:09 PM, Gaius Hammond ga...@gaius.org.uk wrote: Over in OCaml-land, I have taken it upon myself to address this: http://gaiustech.github.com/ociml/

[Haskell-cafe] Haskell Help

2011-02-11 Thread Patrick M
I'm writting a function that will remove tautologies from a fomula.The basic idea is that if in a clause, a literal and its negation are found, it means that the clause will be true, regardless of the value finally assigned to that propositional variable.My appoach is to create a function

[Haskell-cafe] Haskell Help

2011-02-11 Thread PatrickM
-exhaustive patterns in function rt What should I do? -- View this message in context: http://haskell.1045720.n5.nabble.com/Haskell-Help-tp3381647p3381647.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com. ___ Haskell-Cafe

Re: [Haskell-cafe] Haskell Help

2011-02-11 Thread Daniel Fischer
On Friday 11 February 2011 18:25:24, PatrickM wrote: I'm writting a function that will remove tautologies from a fomula.The basic idea is that if in a clause, a literal and its negation are found, it means that the clause will be true, regardless of the value finally assigned to that

[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-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            

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) But now

[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

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

[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 =

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

[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

[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. however,

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 ; print v }

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]

[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

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

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)

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
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

Re: BUG in HAskell! Help! Bad interface file: IO.hi

2006-12-15 Thread Lemmih
On 12/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.6, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :? for help. Loading package base

BUG in HAskell! Help! Bad interface file: IO.hi

2006-12-12 Thread fidan
___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.6, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :? for help. Loading package base ... linking ... done. interactive:1:84: Bad interface

Re: BUG in HAskell! Help! Bad interface file: IO.hi

2006-12-12 Thread Christian Maeder
How did you call ghci? Maybe some *.hi files build on another platform were lying around. Cheers Christian Loading IO works for me (on the same machine): Loading package base ... linking ... done. Prelude :m IO Prelude IO [EMAIL PROTECTED] schrieb: ___ ___ _ / _ \ /\ /\/ __(_)

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

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 use killThread

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

[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

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

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

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 signalling

[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.

[Haskell-cafe] Re: MUA written in Haskell, and MTA in Haskell help?

2006-03-08 Thread Shae Matijs Erisson
Nils Anders Danielsson [EMAIL PROTECTED] writes: I had the same thought yesterday, after an Emacs-Lisp session in which I was trying to get Gnus to do exactly what I wanted it to... Yeah, same here. I use Gnus and it's nice, but occasionally I want to erase it from the timestream. Out of

Re: [Haskell-cafe] Re: MUA written in Haskell, and MTA in Haskell help?

2006-03-08 Thread Donald Bruce Stewart
shae: Nils Anders Danielsson [EMAIL PROTECTED] writes: I had the same thought yesterday, after an Emacs-Lisp session in which I was trying to get Gnus to do exactly what I wanted it to... Yeah, same here. I use Gnus and it's nice, but occasionally I want to erase it from the timestream.

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,

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 you.

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

[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),      

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

2005-02-07 Thread Cale Gibbard
Delete data Maybe Dir = Just Dir | Nothing as it is unnecessary Maybe a is defined already for any type a (and doesn't make sense, Dir occuring before the = sign would indicate that it is a type variable, but it is uppercase), and also change data Dir = Left | Right | Up | Down data Piece =

[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.

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 to

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

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

2004-06-30 Thread Duncan Coutts
On Wed, 2004-06-30 at 12:00, MR K P SCHUPKE wrote: Ahh.. I see whats happening: MArray (STUArray s) a (ST s) = String - String - ST s (UArray (Int,Int) a) IArray UArray a = String - String - a nothing here is specifying a... you cannot leave a polymorphic in this case. You need to

[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 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

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

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) d -

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 having

Re: Haskell help!

2003-03-26 Thread Marc Ziegert
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 tuples if they all have the same score, as indicated in my new

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 Dienstag, 25. März

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

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

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 example,

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 blush. I forgot about that. Please take my mail above as

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 () This

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 to

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