Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Michael Snoyman
On Mon, Feb 1, 2010 at 7:08 AM, Robert Wills wrote: > I use Webfaction. > > http://www.webfaction.com/services/hosting > > It's not a personal vps but you get ssh access and you can run any > webserver you want-- even a Haskell one: > > http://wrwills.webfactional.com/2009/10/30/Haskell-on-a-Webf

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Robert Wills
I use Webfaction. http://www.webfaction.com/services/hosting It's not a personal vps but you get ssh access and you can run any webserver you want-- even a Haskell one: http://wrwills.webfactional.com/2009/10/30/Haskell-on-a-Webfaction-Host They support Postgres databases too. It's cheaper tha

[Haskell-cafe] Greencard/c2hs + cabal

2010-01-31 Thread Maciej Piechotka
I have a problem with integrating cabal with greencard. 1. When I run build it creates: src/Path/To/Module_stub_ffi.c src/Path/To/Module_stub_ffi.h instead of dist/build/Path/To/Module_stub_ffi.c dist/build/Path/To/Module_stub_ffi.h 2. I get the unknown symbols errors for symbols defined in stub

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Tom Tobin
On Sun, Jan 31, 2010 at 3:37 PM, Michael Snoyman wrote: > OK, I guess the unananimous opinion in linode ;). Thanks for the input > everyone! If it helps make your client even more comfortable: not only do I use Linode for my personal VPS, but we use them at work to host some fairly popular websit

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread MightyByte
Hi, I'm also a happy linode customer. However, my happstack app eats a lot of memory. I currently have plans to switch to prgmr.com because their hosting plans give you much more RAM / dollar than any other hosting company I've seen ($20 / month for a gig of RAM). On Sun, Jan 31, 2010 at 4:37 P

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-01-31 Thread Don Stewart
malcolm.wallace: > Google has announced that the Summer of Code programme will be running > again this year. If haskell.org people would like to take part again > this year, then we need volunteers: > > First, > * suggestions for suitable projects > (in the past this was organise

[Haskell-cafe] Anyone up for Google SoC 2010?

2010-01-31 Thread Malcolm Wallace
Google has announced that the Summer of Code programme will be running again this year. If haskell.org people would like to take part again this year, then we need volunteers: First, * suggestions for suitable projects (in the past this was organised using a reddit) * an ad

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Michael Snoyman
OK, I guess the unananimous opinion in linode ;). Thanks for the input everyone! Michael On Sun, Jan 31, 2010 at 11:29 PM, Marc Weber wrote: > > I'm a happy linode customer: http://www.linode.com/ > Me too. I tried different hosting services before. They all have there > strength. The linode sh

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Marc Weber
> I'm a happy linode customer: http://www.linode.com/ Me too. I tried different hosting services before. They all have there strength. The linode shell is terrific! If all you want is standard debian or such it does'nt matter. However I tried installing NixOS Linux and I've had lot's of trouble un

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Gregory Collins
Michael Snoyman writes: > Hi all, > > I'm working with a client right now on deploying an app. I was > wondering if anyone had some recommendations for a Haskell-friendly > host. I'm a happy linode customer: http://www.linode.com/ G -- Gregory Collins _

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Alexander Solla
On Jan 31, 2010, at 12:02 PM, Michael Snoyman wrote: I'm working with a client right now on deploying an app. I was wondering if anyone had some recommendations for a Haskell-friendly host. I'm inclined to go with a VPS for this setup, but if there's reliable shared hosting, that would d

[Haskell-cafe] HWN Issue 148 -- unicode error

2010-01-31 Thread Joe Fredette
Indeed, the Unicode only made it through my system, and not the mailer itself. In fact, the name should look something like "Ćwikłowski", and not the garbled mess that made it through. Apologies again, Bartek! /Joe___ Haskell-Cafe mailing list Ha

[Haskell-cafe] Haskell Weekly News: Issue 148 - January 31, 2010

2010-01-31 Thread jfredett
--- Haskell Weekly News http://sequence.complete.org/hwn/20100131 Issue 148 - January 31, 2010 --- Welcome to issue 148 of HWN, a newsletter covering

Re: [Haskell-cafe] Very imperfect hash function

2010-01-31 Thread Hans Aberg
On 31 Jan 2010, at 20:07, John Lato wrote: Or are you suggesting an actual hash table? The hash function folds the keys onto an interval. Since you have Int values k, you might just use a mod k n function for that. If it's the latter, I'm not certain where the array fits into the picture.

[Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Michael Snoyman
Hi all, I'm working with a client right now on deploying an app. I was wondering if anyone had some recommendations for a Haskell-friendly host. I'm inclined to go with a VPS for this setup, but if there's reliable shared hosting, that would do as well. This client is fairly price-sensitive, so I

Re: [Haskell-cafe] Very imperfect hash function

2010-01-31 Thread John Lato
On Fri, Jan 29, 2010 at 9:26 AM, Hans Aberg wrote: > On 29 Jan 2010, at 15:57, John Lato wrote: > >> Are you >> basically just suggesting to stick everything in an array with the key >> as an index? > > You still need to fold the key values onto some interval. Not with a suitably large array ;-)

[Haskell-cafe] Recursively traversing a data structure with HXT

2010-01-31 Thread Mads Lindstrøm
Hi I am trying to use HXT (8.3.2) for parsing XML. I think an example will clarify what I want to do. I want to parse XML like this: and want to turn it into the following Haskell data structure: data Widget = Widget { cls :: String , children :: [Widget

Re: [Haskell-cafe] Linguistic hair-splitting

2010-01-31 Thread Tristan Seligmann
On Sat, Jan 30, 2010 at 9:33 AM, Conal Elliott wrote: > I don't like this bias toward singling out Monad among all of the type > classes, thereby perpetuating the misleading mystique surrounding Monad.  If > you're going to call [3,5,8] "a monadic value", then please give equal time > to other typ

[Haskell-cafe] Re: ANN: haskell-src-exts-1.8.0

2010-01-31 Thread Niklas Broberg
> 1.7.2 --> 1.8.0 > === ... and one more I forgot: Export 'knownExtensions' from .Extension. /Niklas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANN: haskell-src-exts-1.8.0

2010-01-31 Thread Niklas Broberg
Fellow Haskelleers, I'm pleased to announce the release of haskell-src-exts-1.8.0! * On hackage: http://hackage.haskell.org/package/haskell-src-exts * Via cabal: cabal install haskell-src-exts * Darcs repo: http://code.haskell.org/haskell-src-exts For users of hsx, the latest version 0.6.1 works

Re: [Haskell-cafe] Trapping getChar before echo

2010-01-31 Thread Andrew Coppin
Michael Hartl wrote: import System.IO import Data.Char main = do hSetEcho stdin False hSetBuffering stdin NoBuffering hSetBuffering stdout NoBuffering scanLine where scanLine = do c <- hGetChar stdin putChar . toUpper $ c scanLine La

Re: [Haskell-cafe] Trapping getChar before echo

2010-01-31 Thread Michael Hartl
import System.IO import Data.Char main = do hSetEcho stdin False hSetBuffering stdin NoBuffering hSetBuffering stdout NoBuffering scanLine where scanLine = do c <- hGetChar stdin putChar . toUpper $ c scanLine Am Sonntag, den 31.01.2010, 1

Re: [Haskell-cafe] Trapping getChar before echo

2010-01-31 Thread Neil Mitchell
Hi Mark, http://haskell.org/hoogle/?hoogle=set+echo Thanks, Neil On Sun, Jan 31, 2010 at 8:47 AM, Mark Spezzano wrote: > Hi, > > Is there any way of trapping keystrokes in Haskell, modifying them, and then > echoing? > > Basically I want to give the user a prompt  like: >> > > and then have wh

[Haskell-cafe] ANN: Elerea 1.2.3 with some enhancements

2010-01-31 Thread Patai Gergely
Hello all, I added a few new features to the experimental branch of Elerea [1], my little FRP library. The previous release added random sources -- both noise signals and instantaneous values within generators -- using mersenne-random, and the current update added an extra primitive to handle exte

Re: [Haskell-cafe] Strange random choice algorithm

2010-01-31 Thread Chaddaï Fouché
On Sat, Jan 30, 2010 at 9:38 PM, Daniel Fischer wrote: >> Also, is there a more direct way of printing an array? > > Sure, > > printing immutable arrays: > > print arr ~> array (lo,hi) [(lo,arr!lo), ... , (hi,arr!hi)] > print (assocs arr) ~> [(lo,arr!lo), ... , (hi,arr!hi)] > print (elems arr) ~>

Re: [Haskell-cafe] Strange random choice algorithm

2010-01-31 Thread Sebastian Fischer
On Jan 31, 2010, at 12:06 AM, Sebastian Fischer wrote: pick xs = do n <- randomRIO (1,length xs) return (xs!!(n-1)) would have been clearer.. It queries the random number generator only once but walks through the list twice. Walking through the list twice leads to linear

[Haskell-cafe] Trapping getChar before echo

2010-01-31 Thread Mark Spezzano
Hi, Is there any way of trapping keystrokes in Haskell, modifying them, and then echoing? Basically I want to give the user a prompt like: > and then have whatever they type appear in UPPERCASE regardless of whether caps lock was on or not. By default Haskell seems to echo characters in what

Re: [Haskell-cafe] Re: C functional programming techniques?

2010-01-31 Thread Alexander Solla
On Jan 30, 2010, at 5:26 PM, Maurí cio CA wrote: Do you have some link to an example of such proof by induction of type safety? Not off-hand, but I did just find Atze Dijkstra's Essential Haskell, which covers the type system in depth, and it looks like a good bet for you. http://www.cs.