Re: [Haskell-cafe] haskellonline.org, a web frontend for ghc

2012-05-05 Thread Alberto G. Corona
That´s very good.

What tecnology, libraries etc did you use?

2012/5/3 Gintautas Miliauskas gintau...@miliauskas.lt:
 Hello,

 check out http://haskellonline.org, an online Haskell typechecker. It
 is essentially a thin web wrapper over ghc, but it takes some friction
 out of learning Haskell, if only because no local setup is required.
 It is a weekend's work, so do not be too harsh, but feedback is
 welcome!

 I have also written up an accompanying blog post [1].

 [1] http://blog.miliauskas.lt/2012/05/online-haskell-typechecker.html

 Best regards,
 --
 Gintautas Miliauskas

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell and arrays

2012-05-05 Thread Yves Parès
Well actually, unless you _really_ need paramterizable indexes (i.e. not
only Ints) I don't see reasons to prefer array to vector now.

2012/5/4 Johan Tibell johan.tib...@gmail.com

 Hi Morten,

 If speed is really important I would go with the vector package. It
 has a more modern API and better performance.

 -- Johan

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Learn you

2012-05-05 Thread Valentin ROBERT
Dear Kazu,

Could you please answer my concerns about the license under which LYAH
is distributed? (see my initial reply to the thread)
Additionally, under what license is your translation work re-distributed?

Sorry if this has been addressed already.

Best regards,
- Valentin

On Thu, May 3, 2012 at 9:57 AM, Ptival valentin.robert...@gmail.com wrote:
 For the French translation, I dropped the humor altogether. It just doesn't
 feel right to translate a reference to a meme. Plus the English phrasing is
 quite impossible to express... it would have been really dumb had I tried to
 stick to it.
 So I opted for a close translation, but sadly, grammatically correct.

 As a completely different subject, has this publishing been allowed by the
 original author?
 AFAIK, the book is under CC BY-NC-SA, and the sell price displayed on Amazon
 seems high for a factory price.

 Best,
 - Valentin

 On Wednesday, May 2, 2012 7:18:23 PM UTC+2, Brent Yorgey wrote:

 I am curious how the title was translated.  Of course, the English
 title Learn You a Haskell for Great Good uses intentionally
 ungrammatical/unidiomatic English for humorous effect.  Is the
 Japanese title also ungrammatical/unidiomatic Japanese?  Or do
 Japanese speakers not find that humorous?

 -Brent

 On Wed, May 02, 2012 at 03:59:18PM +0900, Kazu Yamamoto wrote:
  Hello cafe,
 
  Translating Learn You a Haskell for Great Good into Japanese was
  finished and will be published on 22 May. I guess it's worth watching
  its cover page:
 
 
  http://www.amazon.co.jp/%E3%81%99%E3%81%94%E3%81%84Haskell%E3%81%9F%E3%81%AE%E3%81%97%E3%81%8F%E5%AD%A6%E3%81%BC%E3%81%86-Miran-Lipova%C4%8Da/dp/4274068854
 
  There are two translators: Tanaka is the author of peggy and Muranushi
  is
  the author of Monadius.
 
  Regards,
 
  --Kazu
 
  ___
  Haskell-Cafe mailing list
  Haskell-Cafe@haskell.org
  http://www.haskell.org/mailman/listinfo/haskell-cafe

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] MonadError vs Control.Exception

2012-05-05 Thread Albert Y. C. Lai

On 12-05-04 07:03 PM, Станислав Черничкин wrote:

Hi, guys, I'm interested in best practices in using of each approach.
Personally I like MonadError because it is more explicit and
Control.Exception-s becomes really ugly in complex scenarios.


[...]


User has to deal with
both, but have no evidence on none of them from type signatures or
documentation.


My opinion is largely recorded in my sarcastic
http://www.vex.net/~trebla/haskell/exception.xhtml
Be sure to click the click me if you can button and read again.

My sarcastic article focuses on control flow and doesn't comment on 
types. I agree about seeing exception possibilities in types. But that 
was done 8 years ago:

http://www.haskell.org/pipermail/haskell/2004-June/014271.html


So, I hate exceptions, I blame it, I think exceptions is junk came
from OO-world and horrible languages like C# or even more horrible
like Java, and it should be wiped out from Haskell with fire. But it
is only my humble opinion.


While you are entitled to have opinions, and I am fine with those parts 
about I hate exceptions, exceptions is junk, it is irresponsible and 
unreasonable to use that right on objective, verifiable, historical 
facts. Yes, I really hate it when people do that. I think Oleg is from 
Vulcus without even asking anyone. I think everyone uses Java without 
hard data. Programmers' habit of subsituting thinking for empirical 
facts is one of many reasons why the software profession has not yet 
earned the engineering status.


The only two responsible, reasonable positions are:

1. find the answer
or
2. hold the position that you just don't know

Exceptions appeared as early as in ML and Ada in the 1980s, before many 
people knew OO, before ML or Ada got OO stuff, before Java or C# existed 
(or when Java was an internal project under two old names at Sun), even 
before C++ got exceptions. Exceptions first appeared under another name 
in the paper of David Parnas and Harald Würges response to undesired 
events in software systems in ICSE 1976. Exceptions did not come from 
OO or languages you mentioned, and this is not about opinion.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Issues with installing packages

2012-05-05 Thread Graham Berks
New to haskell and having issues resolving packages, have the following output 
below and can't seem to resolve it. 

Text seems to have diff hash dependancies when I try and instal a diff version 
of 0.11.2.0 etc

Any ideas on what todo ??

Thanks

$ ghc-pkg check
There are problems in package scion-browser-0.2.8:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package persistent-template-0.9.0.1:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package persistent-sqlite-0.9.0.1:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package persistent-0.9.0.3:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package aeson-0.6.0.2:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package path-pieces-0.1.1:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package hashable-1.1.2.3:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package conduit-0.4.1.1:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package blaze-html-0.4.3.4:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package blaze-builder-0.3.1.0:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package attoparsec-0.10.1.1:
  dependency text-0.11.2.0-2b6cea8526e93af24bb0154400fd64a6 doesn't exist
There are problems in package buildwrapper-0.5.2:
  dependency aeson-0.6.0.2-f5264d3642c44cd43d87b542486e49c9 doesn't exist
  dependency attoparsec-0.10.1.1-d3ad0453e3127b6c51ccb14a5cb6f38d doesn't 
exist
  dependency unordered-containers-0.2.1.0-9b5d4d7fe2d79561a684ee5184ea5fd0 
doesn't exist
There are problems in package hoogle-4.2.11:
  dependency blaze-builder-0.3.1.0-adf48413bb3bfeef99ef5e18de097dbd doesn't 
exist
  dependency conduit-0.4.1.1-6c1a48d4c94e05132c53b85e7ca48cd9 doesn't exist
  dependency parsec-3.1.1-d3c0b4413115a5e82a1a5cf9b0b35fee doesn't exist
There are problems in package warp-1.2.0.1:
  dependency blaze-builder-0.3.1.0-adf48413bb3bfeef99ef5e18de097dbd doesn't 
exist
  dependency conduit-0.4.1.1-6c1a48d4c94e05132c53b85e7ca48cd9 doesn't exist
There are problems in package wai-1.2.0.1:
  dependency blaze-builder-0.3.1.0-adf48413bb3bfeef99ef5e18de097dbd doesn't 
exist
  dependency conduit-0.4.1.1-6c1a48d4c94e05132c53b85e7ca48cd9 doesn't exist
There are problems in package network-conduit-0.4.0:
  dependency conduit-0.4.1.1-6c1a48d4c94e05132c53b85e7ca48cd9 doesn't exist
There are problems in package blaze-builder-conduit-0.4.0.1:
  dependency blaze-builder-0.3.1.0-adf48413bb3bfeef99ef5e18de097dbd doesn't 
exist
  dependency conduit-0.4.1.1-6c1a48d4c94e05132c53b85e7ca48cd9 doesn't exist
There are problems in package network-2.3.0.5:
  dependency parsec-3.1.1-d3c0b4413115a5e82a1a5cf9b0b35fee doesn't exist
There are problems in package http-types-0.6.10:
  dependency blaze-builder-0.3.1.0-adf48413bb3bfeef99ef5e18de097dbd doesn't 
exist
There are problems in package case-insensitive-0.4.0.1:
  dependency hashable-1.1.2.3-037c817e51d5d10d89306e9472e2e0bd doesn't exist
There are problems in package test-framework-th-0.2.2:
  dependency test-framework-0.6-7d2482720de09487769f301ebc001970 doesn't exist
There are problems in package test-framework-quickcheck2-0.2.12.1:
  dependency test-framework-0.6-7d2482720de09487769f301ebc001970 doesn't exist
There are problems in package test-framework-quickcheck-0.2.8:
  dependency test-framework-0.6-7d2482720de09487769f301ebc001970 doesn't exist
There are problems in package test-framework-hunit-0.2.7:
  dependency test-framework-0.6-7d2482720de09487769f301ebc001970 doesn't exist

The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
scion-browser-0.2.8
persistent-template-0.9.0.1
persistent-sqlite-0.9.0.1
persistent-0.9.0.3
aeson-0.6.0.2
path-pieces-0.1.1
hashable-1.1.2.3
conduit-0.4.1.1
blaze-html-0.4.3.4
blaze-builder-0.3.1.0
attoparsec-0.10.1.1
buildwrapper-0.5.2
hoogle-4.2.11
warp-1.2.0.1
wai-1.2.0.1
network-conduit-0.4.0
blaze-builder-conduit-0.4.0.1
network-2.3.0.5
http-types-0.6.10
case-insensitive-0.4.0.1
test-framework-th-0.2.2
test-framework-quickcheck2-0.2.12.1
test-framework-quickcheck-0.2.8
test-framework-hunit-0.2.7
unordered-containers-0.2.1.0
pool-conduit-0.1.0.1
resource-pool-0.2.1.0
simple-sendfile-0.2.3
cgi-3001.1.7.4
haskell-platform-2011.4.0.0
HTTP-4000.1.2


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Learn you

2012-05-05 Thread 山本和彦
Hello,

 Could you please answer my concerns about the license under which LYAH
 is distributed? (see my initial reply to the thread)
 Additionally, under what license is your translation work re-distributed?

What I know is:

- The Japanese publisher bought the translation license from the
  publisher of the original.
- The original author knows this.
- Translation is based on the original published book, not on the
  online version. They are different because editors modified much.
- I don't think the Japanese publisher open the translated book
  on line.

P.S.

I'm not a translater of this book. I'm the translator of Programming
in Haskell. :-)

--Kazu

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe