Re: [Haskell-cafe] rip in the class-abstraction continuum

2013-05-21 Thread oleg
Type classes are the approach to constrain type variables, to bound polymorphism and limit the set of types the variables can be instantiated with. If we have two type variables to constrain, multi-parameter type classes are the natural answer then. Let's take this solution and see where it leads

[Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Vlatko Basic
Hi, I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not classical web pages)? Or maybe another one? thanks, vlatko ___

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread MigMit
Doing HTML UI with Happstack was a pleasant experience. Отправлено с iPhone 21.05.2013, в 12:47, Vlatko Basic vlatko.ba...@gmail.com написал(а): Hi, I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Alberto G. Corona
If you like to create a stand alone application I know that happstack was created for stand-alone applications with no database, although Yesod and Snap can do it as well. If your application is a-single-page-doit-all by using a lot of JavaScript (or Fay) , then any of these restful frameworks

[Haskell-cafe] Teaching FP with Haskell

2013-05-21 Thread Rustom Mody
We are offering a MOOC on haskell : https://moocfellowship.org/submissions/the-dance-of-functional-programming-languaging-with-haskell-and-python Full Announcement on beginners list : http://www.haskell.org/pipermail/beginners/2013-May/012013.html One question that I have been grappling with in

Re: [Haskell-cafe] Teaching FP with Haskell

2013-05-21 Thread Alejandro Serrano Mena
Maybe you could look at Helium [ http://www.cs.uu.nl/wiki/bin/view/Helium/WebHome]. From what I understand, it's a subset of Haskell specially designed for teaching. I heard that it provides also very good error messages and hints about typical errors. 2013/5/21 Rustom Mody rustompm...@gmail.com

Re: [Haskell-cafe] Teaching FP with Haskell

2013-05-21 Thread Andrew Butterfield
Rustom, you should look at Helium - http://www.cs.uu.nl/wiki/bin/view/Helium/WebHome Andrew. On 21 May 2013, at 10:55, Rustom Mody wrote: We are offering a MOOC on haskell : https://moocfellowship.org/submissions/the-dance-of-functional-programming-languaging-with-haskell-and-python

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Adrian May
I was wondering about this too. I have a database-heavy, performance-sensitive app in mind. It will serve approximately the same logic over both a raw UDP socket and an HTML5 app generating its pages on the fly. I know that sounds odd but some users still have ordinary phones on cheap data

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Tom Ellis
On Tue, May 21, 2013 at 06:18:16PM +0800, Adrian May wrote: * can I use postgres from Haskell? I've been successfully using http://hackage.haskell.org/package/postgresql-simple It's fine so far except it throws exceptions willy-nilly. (I find exceptions very un-Haskell but some people

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Adrian May
On 21 May 2013 18:24, Tom Ellis tom-lists-haskell-cafe-2...@jaguarpaw.co.uk wrote: I've been successfully using http://hackage.haskell.org/package/postgresql-simple It's fine so far except it throws exceptions willy-nilly. (I find exceptions very un-Haskell but some people seem to

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Daniel Trstenjak
Hi Adrian, What's an exception? I thought Haskell used Maybe. Haskell also has exceptions: dan@machine ~ ghci Prelude head [] *** Exception: Prelude.head: empty list I also consider them as quite problematic, especially if they're used in libraries, but sometimes we're all a bit lazy and

[Haskell-cafe] parsing a CSV file

2013-05-21 Thread Roger Mason
Hello, I'm attempting to write a parser for files that look like this: Bruker Nano GmbH Berlin, Germany Esprit 1.9 Date: 02/05/2013 10:06:49 AM Real time: 15000 Energy Counts -0.4740 . The line before the ellipsis is repeated many times (such lines represents a spectrum). I need to

Re: [Haskell-cafe] parsing a CSV file

2013-05-21 Thread Roman Cheplyaka
* Roger Mason rma...@mun.ca [2013-05-21 12:22:53-0230] Thus far, I have: -- derived from RWH -- file: ch16/csv2.hs import Text.ParserCombinators.Parsec headerLines = endBy csvFile endHeader csvFile = endBy line eol line = sepBy cell (char ',') cell = many (noneOf ,\n) eol = char '\n'

Re: [Haskell-cafe] parsing a CSV file

2013-05-21 Thread Roger Mason
Hi Roman, On 05/21/2013 12:36 PM, Roman Cheplyaka wrote: Clearly, my naiive implementation of endHeader is no good. Hi Roger, Not in scope means that that thing is not defined. So it's not a problem with your implementation, but with the way you load it. If you copy-paste your ghci session

Re: [Haskell-cafe] parsing a CSV file

2013-05-21 Thread Roman Cheplyaka
* Roger Mason rma...@mun.ca [2013-05-21 13:33:47-0230] Hi Roman, On 05/21/2013 12:36 PM, Roman Cheplyaka wrote: Clearly, my naiive implementation of endHeader is no good. Hi Roger, Not in scope means that that thing is not defined. So it's not a problem with your implementation, but

[Haskell-cafe] Announce: vsim the VHDL-subset simulator (unmaintained)

2013-05-21 Thread Sergey Mironov
Hi. I'd like to announce the vsim - the simulator for (small subset of) VHDL language. Currently the project contains pretty large Java part and is not maintained. That's why I don't want to publish it on Hackage. Still, as far as I now have a permission to share the code, I would like to do it.

Re: [Haskell-cafe] parsing a CSV file

2013-05-21 Thread Roger Mason
Thank you. Roger On 05/21/2013 03:15 PM, Roman Cheplyaka wrote: So this is the real error. If you read it carefully, it says that it expected [[String]] but got Char (i.e. [[[String]]]) as a result of the headerLines parser. I don't have time right now to look closer at your code,

Re: [Haskell-cafe] Teaching FP with Haskell

2013-05-21 Thread Ben Doyle
Helium seems interesting, but the code is a little stale, no? The last updates seem to be from 2008-2009. I couldn't get it to build with ghc 7.6.3, not that I tried too terribly hard. On Tue, May 21, 2013 at 6:07 AM, Andrew Butterfield andrew.butterfi...@scss.tcd.ie wrote: Rustom, you

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Vlatko Basic
I looked at MFlow a little and it looks promising. I'll give it a try. Thanks Alberto. Original Message Subject: Re: [Haskell-cafe] HTML framework for web-ui From: Alberto G. Corona agocor...@gmail.com To: