Re: [Haskell-cafe] Cmdargs and common flags

2011-03-12 Thread Magnus Therning
On Mon, Feb 14, 2011 at 19:11, Neil Mitchell ndmitch...@gmail.com wrote:
 Hi Magnus,

 Finally, you can switch to the pure annotations. I will document them
 shortly and give an example in System.Console.CmdArgs.Implicit, but
 for now the details can be found at
 http://hackage.haskell.org/packages/archive/cmdargs/0.6.7/doc/html/System-Console-CmdArgs-Annotate.html

 I've added more details in:
 http://hackage.haskell.org/packages/archive/cmdargs/0.6.8/doc/html/System-Console-CmdArgs-Annotate.html
 http://hackage.haskell.org/packages/archive/cmdargs/0.6.8/doc/html/System-Console-CmdArgs-Implicit.html

 The first link includes comparisons for pure/impure, and the second
 gives a set of equivalences for converting between the two forms.

 Thanks, Neil

I noticed that the form record Ctor {} [...] leads to a warning that
Ctor isn't initialised.  The obvious way to remove the warning is to
call the constructor with all the arguments, but is there a more
convenient/terse way of achieving the same?

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

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


Re: [Haskell-cafe] possible bug for ghc 7 + xcode 4 on snow leopard?

2011-03-12 Thread steffen
There is no SDK for older Mac OS X Releases in XCode 4, but for iPhone... 
Not even in the Resources/Packages.
Indeed Apple did remove support for older Systems then snow leopard in its 
new development tools.
For that reason and problems with no support of IB Plugins one is encouraged 
not to delete XCode 3.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Error while registering packages: cairo glib

2011-03-12 Thread Daniel Díaz
Hi, cafe,

When I have updated my Haskell Platform version to 2011.2.0.0, and I try
to install cairo or glib, during the registering I read the following:

Registering glib-0.12.0...
Installing library in C:\Documents and Settings\User\Datos de
programa\cabal\glib-0.12.0\ghc-7.0.2
Registering glib-0.12.0...
setup.exe: internal error: unexpected package db stack: [UserPackageDB]

And then, the instalation fails.

Searching in Google, I have found some links related:

* http://www.mail-archive.com/haskell-cafe@haskell.org/msg81071.html

* http://hackage.haskell.org/trac/hackage/ticket/731

But I never had this problem before.

Thanks for any help,
Daniel Díaz


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


[Haskell-cafe] Haddock fails on parsing Hamlet

2011-03-12 Thread Mathew de Detrich
Since the site for signing up to haddock mailing list seems to be down (
http://projects.haskell.org/cgi-bin/mailman/listinfo/haddock) I thought I
would post this here

Haddock fails to parse (and therefore closes prematurely) when generating
documentation for the Hamlet package found here (
http://hackage.haskell.org/package/hamlet). This furthermore prevents the
hamlet from being built on archlinux using cabal2arch/AUR/bauerbill

The error when creating the documentation is
Warning: Text.Hamlet.Quasi: We do not support associated types in instances
yet. These instances are affected:
Text.Hamlet.Quasi.HamletValue (Text.Hamlet.Quasi.Hamlet url),
Text.Hamlet.Quasi.HamletValue Text.Blaze.Internal.Html
haddock coverage for dist/build/tmp17309/Text/Hamlet/Quasi.hs:9/14  64%

dist/build/tmp17309/Text/Cassius.hs:340:23:
parse error on input `AbsoluteUnit'
Aborting...

On the previous haskell-platform this did not happen

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


Re: [Haskell-cafe] Error while registering packages: cairo glib

2011-03-12 Thread Ryan Yates
Hi Daniel,

I experienced this problem yesterday and reported the issue here:

http://hackage.haskell.org/trac/gtk2hs/ticket/1203

With some small changes to the Gtk2hsSetup.hs it registers successfully.

Hope this helps,

Ryan
http://hackage.haskell.org/trac/gtk2hs/ticket/1203

On Sat, Mar 12, 2011 at 9:18 AM, Daniel Díaz danield...@asofilak.es wrote:

 Hi, cafe,

 When I have updated my Haskell Platform version to 2011.2.0.0, and I try
 to install cairo or glib, during the registering I read the following:

 Registering glib-0.12.0...
 Installing library in C:\Documents and Settings\User\Datos de
 programa\cabal\glib-0.12.0\ghc-7.0.2
 Registering glib-0.12.0...
 setup.exe: internal error: unexpected package db stack: [UserPackageDB]

 And then, the instalation fails.

 Searching in Google, I have found some links related:

 * http://www.mail-archive.com/haskell-cafe@haskell.org/msg81071.html

 * http://hackage.haskell.org/trac/hackage/ticket/731

 But I never had this problem before.

 Thanks for any help,
 Daniel Díaz


 ___
 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] cabal install yesod gives an error on ghc 7.02

2011-03-12 Thread Vagif Hagverdiyev
cabal install yesod gives an error on ghc 7.02:
http://hackage.haskell.org/trac/ghc/ticket/5004

One of the commenters on that ticcket says: found that providing an
unstripped version of libHsghc-7.0.2.a allows for successful linking.


Where can i get that unstripped version of libHsghc-7.0.2.a  ?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] possible bug for ghc 7 + xcode 4 on snow leopard?

2011-03-12 Thread Carter Schonwald
well, the xcode 4 installer doesn't delete those files, it just moves them
to developer-old

On Sat, Mar 12, 2011 at 5:36 AM, steffen steffen.sier...@googlemail.comwrote:

 There is no SDK for older Mac OS X Releases in XCode 4, but for iPhone...
 Not even in the Resources/Packages.
 Indeed Apple did remove support for older Systems then snow leopard in its
 new development tools.
 For that reason and problems with no support of IB Plugins one is
 encouraged not to delete XCode 3.

 ___
 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] cabal install yesod gives an error on ghc 7.02

2011-03-12 Thread Michael Snoyman
Quick idea: I wonder if the linking with hint is causing the trouble.
Could you try building with cabal install yesod -fproduction? I
haven't had a chance to install GHC 7.02 locally yet /shame.

Michael

On Sat, Mar 12, 2011 at 7:26 PM, Vagif Hagverdiyev
vagif.ve...@gmail.com wrote:
 cabal install yesod gives an error on ghc 7.02:
 http://hackage.haskell.org/trac/ghc/ticket/5004

 One of the commenters on that ticcket says: found that providing an
 unstripped version of libHsghc-7.0.2.a allows for successful linking.
 

 Where can i get that unstripped version of libHsghc-7.0.2.a  ?

 ___
 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] cabal install yesod gives an error on ghc 7.02

2011-03-12 Thread Vagif Hagverdiyev
Yes, -fproduction installs fine.

On Sat, Mar 12, 2011 at 9:31 AM, Michael Snoyman mich...@snoyman.comwrote:

 Quick idea: I wonder if the linking with hint is causing the trouble.
 Could you try building with cabal install yesod -fproduction? I
 haven't had a chance to install GHC 7.02 locally yet /shame.

 Michael

 On Sat, Mar 12, 2011 at 7:26 PM, Vagif Hagverdiyev
 vagif.ve...@gmail.com wrote:
  cabal install yesod gives an error on ghc 7.02:
  http://hackage.haskell.org/trac/ghc/ticket/5004
 
  One of the commenters on that ticcket says: found that providing an
  unstripped version of libHsghc-7.0.2.a allows for successful linking.
  
 
  Where can i get that unstripped version of libHsghc-7.0.2.a  ?
 
  ___
  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] Light and fast http server

2011-03-12 Thread Greg Weber

 snap or warp/yesod. maybe in a few years we will have a winner for the

platform...


 --dons


 On Friday, March 11, 2011, Vo Minh Thu not...@gmail.com wrote:

 2011/3/11 Victor Oliveira rhapso...@gmail.com:

 Hi cafe,



 There are a lot of http servers in hackage. I didn't have used none.

 I would like to know if one of them is something closer of the nginx.

 I need some light and fast. It don't need support all http, just the
 basics is fine.

 Suggestions?



 Snap and Warp come to mind. Have a look at this reddit thread:


 http://www.reddit.com/r/programming/comments/flpao/the_haskell_high_performance_server_shootout/

 

 Cheers,

 Thu


To be clear, Yesod and Snap are web frameworks.

If you want just a web server, then your main options are snap-server or
Warp as has been pointed out.
The happstack framework also has a server, but they are planning on
switching it out in the future.
As for speed, warp is at least twice as fast as snap-server.
As for lightness-
* snap-server and Warp support a similar feature set, with some differences
that might be important, depending on your needs.
* Warp has a much smaller code base
* lightness may be a perception of how you interface with the server.
I don't know how you would interface with snap-server except through the
Snap framework.
Warp can be used with Yesod, but runs on the WAI interface.
The WAI inteface allows you to change your mind and deploy to a different
server in the future.
Hopefully it will also allow you to use different frameworks in the future,
although this is not the case yet.
But just as important, it is also designed to support easy and re-usable
low-level web programming.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Light and fast http server

2011-03-12 Thread Jeremy Shaw


On Mar 11, 2011, at 4:39 PM, Victor Oliveira wrote:


Hi cafe,

There are a lot of http servers in hackage. I didn't have used none.
I would like to know if one of them is something closer of the nginx.
I need some light and fast. It don't need support all http, just the  
basics is fine.

Suggestions?


What do you mean by 'the basics'?

happstack, yesod, and snap are all frameworks for building web  
applications.


But it sounds like you are just looking for a web server to server  
static content for the disk? If so, what is the advantage you hope to  
get by using Haskell over nginx ?


Any of the high-level frameworks can server static content pretty  
trivially. For example in Happstack you would just do:


 module Main where

 import Happstack.Server (Browsing(EnableBrowsing), nullConf,  
serveDirectory, simpleHTTP)


 main :: IO ()
 main = simpleHTTP nullConf $ serveDirectory EnableBrowsing [] .
To serve files from the current directly.
If that is all you really need, then I would probably recommend warp +  
wai-app-static,

http://hackage.haskell.org/package/wai-app-static
Warp is pretty darn fast. Though, in practice I think you will find  
that all of the frameworks/servers are going to have very similar  
results for serving static files since they all call sendfile() to do  
the bulk of the transfer.
If you are looking for other features, then you need to say what those  
features are..

- jeremy


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


Re: [Haskell-cafe] Light and fast http server

2011-03-12 Thread Michael Snoyman
On Sat, Mar 12, 2011 at 9:00 PM, Jeremy Shaw jer...@n-heptane.com wrote:

 On Mar 11, 2011, at 4:39 PM, Victor Oliveira wrote:

 Hi cafe,

 There are a lot of http servers in hackage. I didn't have used none.
 I would like to know if one of them is something closer of the nginx.
 I need some light and fast. It don't need support all http, just the
 basics is fine.
 Suggestions?

 What do you mean by 'the basics'?

 happstack, yesod, and snap are all frameworks for building web applications.

 But it sounds like you are just looking for a web server to server static
 content for the disk? If so, what is the advantage you hope to get by using
 Haskell over nginx ?

 Any of the high-level frameworks can server static content pretty trivially.
 For example in Happstack you would just do:

 module Main where

 import Happstack.Server (Browsing(EnableBrowsing), nullConf,
 serveDirectory, simpleHTTP)

 main :: IO ()
 main = simpleHTTP nullConf $ serveDirectory EnableBrowsing [] .
 To serve files from the current directly.
 If that is all you really need, then I would probably recommend warp +
 wai-app-static,
 http://hackage.haskell.org/package/wai-app-static
 Warp is pretty darn fast. Though, in practice I think you will find that all
 of the frameworks/servers are going to have very similar results for serving
 static files since they all call sendfile() to do the bulk of the transfer.
 If you are looking for other features, then you need to say what those
 features are..
 - jeremy

Minor post-script: if all you need is warp + wai-app-static without
any custom code, then you can just use the warp-static[1] package. I
mostly just use this when testing HTML bundles on my work system and
need to serve from a web server to bypass Javascript-from-file://
issues. In production, if you really just need static file serving, I
would also tend to recommend nginx instead.

Michael

[1] http://hackage.haskell.org/package/warp-static

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


[Haskell-cafe] Yesod 0.7.1 using GHC 7.0.2 on Arch Linux

2011-03-12 Thread Ertugrul Soeylemez
Hello there,

today I have upgraded to GHC 7.0.2 by doing a system update on my Arch
Linux box (x86, 32 bits), and I'm having difficulties to install Yesod.
Its dependencies seem to have been installed without problems, but the
Yesod package itself fails.  The complete build log follows:

% cabal install yesod
Resolving dependencies...
Configuring yesod-0.7.1...
Preprocessing library yesod-0.7.1...
Preprocessing executables for yesod-0.7.1...
Building yesod-0.7.1...
[1 of 1] Compiling Yesod( Yesod.hs, dist/build/Yesod.o )
Registering yesod-0.7.1...
[1 of 2] Compiling CodeGen  ( CodeGen.hs, 
dist/build/yesod/yesod-tmp/CodeGen.o )
[2 of 2] Compiling Main ( scaffold.hs, 
dist/build/yesod/yesod-tmp/Main.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package bytestring-0.9.1.10 ... linking ... done.
Loading package base64-bytestring-0.1.0.2 ... linking ... done.
Loading package array-0.3.0.2 ... linking ... done.
Loading package containers-0.4.0.0 ... linking ... done.
Loading package cereal-0.3.0.0 ... linking ... done.
Loading package filepath-1.2.0.0 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package old-time-1.0.0.6 ... linking ... done.
Loading package unix-2.4.2.0 ... linking ... done.
Loading package directory-1.1.0.0 ... linking ... done.
Loading package binary-0.5.0.2 ... linking ... done.
Loading package data-default-0.2.0.1 ... linking ... done.
Loading package tagged-0.2 ... linking ... done.
Loading package crypto-api-0.5.2 ... linking ... done.
Loading package pureMD5-2.1.0.3 ... linking ... done.
Loading package pretty-1.0.1.2 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package transformers-0.2.2.0 ... linking ... done.
Loading package deepseq-1.1.0.2 ... linking ... done.
Loading package text-0.11.0.5 ... linking ... done.
Loading package blaze-builder-0.2.1.4 ... linking ... done.
Loading package blaze-html-0.4.1.0 ... linking ... done.
Loading package file-embed-0.0.3.1 ... linking ... done.
Loading package time-1.2.0.3 ... linking ... done.
Loading package unix-compat-0.2.1.1 ... linking ... done.
Loading package enumerator-0.4.7 ... linking ... done.
Loading package mtl-2.0.1.0 ... linking ... done.
Loading package parsec-3.1.1 ... linking ... done.
Loading package network-2.2.1.10 ... linking ... done.
Loading package wai-0.3.2 ... linking ... done.
Loading package utf8-string-0.3.6 ... linking ... done.
Loading package web-routes-0.23.4 ... linking ... done.
Loading package wai-app-static-0.0.1.1 ... linking ... done.
Loading package random-1.0.0.3 ... linking ... done.
Loading package clientsession-0.4.1 ... linking ... done.
Loading package cookie-0.0.0 ... linking ... done.
Loading package failure-0.1.0.1 ... linking ... done.
Loading package extensible-exceptions-0.1.1.2 ... linking ... done.
Loading package QuickCheck-2.4.0.1 ... linking ... done.
Loading package blaze-builder-enumerator-0.2.0.1 ... linking ... done.
Loading package json-types-0.1 ... linking ... done.
Loading package json-enumerator-0.0.1 ... linking ... done.
Loading package hamlet-0.7.2 ... linking ... done.
Loading package monad-peel-0.1 ... linking ... done.
Loading package zlib-0.5.3.1 ... linking ... done.
Loading package zlib-bindings-0.0.0 ... linking ... done.
Loading package wai-extra-0.3.3 ... linking ... done.
Loading package web-routes-quasi-0.6.3.1 ... linking ... done.
Loading package yesod-core-0.7.0.1 ... linking ... done.
Loading package yesod-static-0.0.0.1 ... linking ... done.
Loading package SHA-1.4.1.3 ... linking ... done.
Loading package RSA-1.0.6.1 ... linking ... done.
Loading package data-object-0.3.1.6 ... linking ... done.
Loading package attoparsec-0.8.5.0 ... linking ... done.
Loading package bytestring-nums-0.3.2 ... linking ... done.
Loading package bytestring-trie-0.2.3 ... linking ... done.
Loading package JSONb-1.0.3 ... linking ... done.
Loading package attempt-0.3.0 ... linking ... done.
Loading package convertible-text-0.3.0.9 ... linking ... done.
Loading package data-object-json-0.3.1.5 ... linking ... done.
Loading package attoparsec-enumerator-0.2.0.3 ... linking ... done.
Loading package network-bytestring-0.1.3.4 ... linking ... done.
Loading package asn1-data-0.4.6 ... linking ... done.
Loading package certificate-0.7.0 ... linking ... done.
Loading package primitive-0.3.1 ... linking ... done.
Loading package vector-0.7.0.1 ... linking ... done.
Loading package cryptocipher-0.2.6 ... linking ... done.
Loading package cryptohash-0.6.3 

Re: [Haskell-cafe] Cmdargs and common flags

2011-03-12 Thread Neil Mitchell
{-# OPTIONS_GHC -fno-warn-missing-fields #-}

That's what I did in my CmdArgs test suite - if you have all your
CmdArgs bit in a separate file then missing this warning will be fine.
I don't know of any way to rewrite the code to indicate to GHC that
you know what you are doing.

Thanks, Neil


On Sat, Mar 12, 2011 at 8:02 AM, Magnus Therning mag...@therning.org wrote:
 On Mon, Feb 14, 2011 at 19:11, Neil Mitchell ndmitch...@gmail.com wrote:
 Hi Magnus,

 Finally, you can switch to the pure annotations. I will document them
 shortly and give an example in System.Console.CmdArgs.Implicit, but
 for now the details can be found at
 http://hackage.haskell.org/packages/archive/cmdargs/0.6.7/doc/html/System-Console-CmdArgs-Annotate.html

 I've added more details in:
 http://hackage.haskell.org/packages/archive/cmdargs/0.6.8/doc/html/System-Console-CmdArgs-Annotate.html
 http://hackage.haskell.org/packages/archive/cmdargs/0.6.8/doc/html/System-Console-CmdArgs-Implicit.html

 The first link includes comparisons for pure/impure, and the second
 gives a set of equivalences for converting between the two forms.

 Thanks, Neil

 I noticed that the form record Ctor {} [...] leads to a warning that
 Ctor isn't initialised.  The obvious way to remove the warning is to
 call the constructor with all the arguments, but is there a more
 convenient/terse way of achieving the same?

 /M

 --
 Magnus Therning                      OpenPGP: 0xAB4DFBA4
 email: mag...@therning.org   jabber: mag...@therning.org
 twitter: magthe               http://therning.org/magnus


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


Re: [Haskell-cafe] Yesod 0.7.1 using GHC 7.0.2 on Arch Linux

2011-03-12 Thread Ryan Yates
Looks to be reported here:

http://hackage.haskell.org/trac/ghc/ticket/5004


http://hackage.haskell.org/trac/ghc/ticket/5004Ryan

On Sat, Mar 12, 2011 at 3:26 PM, Ertugrul Soeylemez e...@ertes.de wrote:

 Hello there,

 today I have upgraded to GHC 7.0.2 by doing a system update on my Arch
 Linux box (x86, 32 bits), and I'm having difficulties to install Yesod.
 Its dependencies seem to have been installed without problems, but the
 Yesod package itself fails.  The complete build log follows:

% cabal install yesod
Resolving dependencies...
Configuring yesod-0.7.1...
Preprocessing library yesod-0.7.1...
Preprocessing executables for yesod-0.7.1...
Building yesod-0.7.1...
[1 of 1] Compiling Yesod( Yesod.hs, dist/build/Yesod.o )
Registering yesod-0.7.1...
[1 of 2] Compiling CodeGen  ( CodeGen.hs,
 dist/build/yesod/yesod-tmp/CodeGen.o )
[2 of 2] Compiling Main ( scaffold.hs,
 dist/build/yesod/yesod-tmp/Main.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package bytestring-0.9.1.10 ... linking ... done.
Loading package base64-bytestring-0.1.0.2 ... linking ... done.
Loading package array-0.3.0.2 ... linking ... done.
Loading package containers-0.4.0.0 ... linking ... done.
Loading package cereal-0.3.0.0 ... linking ... done.
Loading package filepath-1.2.0.0 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package old-time-1.0.0.6 ... linking ... done.
Loading package unix-2.4.2.0 ... linking ... done.
Loading package directory-1.1.0.0 ... linking ... done.
Loading package binary-0.5.0.2 ... linking ... done.
Loading package data-default-0.2.0.1 ... linking ... done.
Loading package tagged-0.2 ... linking ... done.
Loading package crypto-api-0.5.2 ... linking ... done.
Loading package pureMD5-2.1.0.3 ... linking ... done.
Loading package pretty-1.0.1.2 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package transformers-0.2.2.0 ... linking ... done.
Loading package deepseq-1.1.0.2 ... linking ... done.
Loading package text-0.11.0.5 ... linking ... done.
Loading package blaze-builder-0.2.1.4 ... linking ... done.
Loading package blaze-html-0.4.1.0 ... linking ... done.
Loading package file-embed-0.0.3.1 ... linking ... done.
Loading package time-1.2.0.3 ... linking ... done.
Loading package unix-compat-0.2.1.1 ... linking ... done.
Loading package enumerator-0.4.7 ... linking ... done.
Loading package mtl-2.0.1.0 ... linking ... done.
Loading package parsec-3.1.1 ... linking ... done.
Loading package network-2.2.1.10 ... linking ... done.
Loading package wai-0.3.2 ... linking ... done.
Loading package utf8-string-0.3.6 ... linking ... done.
Loading package web-routes-0.23.4 ... linking ... done.
Loading package wai-app-static-0.0.1.1 ... linking ... done.
Loading package random-1.0.0.3 ... linking ... done.
Loading package clientsession-0.4.1 ... linking ... done.
Loading package cookie-0.0.0 ... linking ... done.
Loading package failure-0.1.0.1 ... linking ... done.
Loading package extensible-exceptions-0.1.1.2 ... linking ... done.
Loading package QuickCheck-2.4.0.1 ... linking ... done.
Loading package blaze-builder-enumerator-0.2.0.1 ... linking ... done.
Loading package json-types-0.1 ... linking ... done.
Loading package json-enumerator-0.0.1 ... linking ... done.
Loading package hamlet-0.7.2 ... linking ... done.
Loading package monad-peel-0.1 ... linking ... done.
Loading package zlib-0.5.3.1 ... linking ... done.
Loading package zlib-bindings-0.0.0 ... linking ... done.
Loading package wai-extra-0.3.3 ... linking ... done.
Loading package web-routes-quasi-0.6.3.1 ... linking ... done.
Loading package yesod-core-0.7.0.1 ... linking ... done.
Loading package yesod-static-0.0.0.1 ... linking ... done.
Loading package SHA-1.4.1.3 ... linking ... done.
Loading package RSA-1.0.6.1 ... linking ... done.
Loading package data-object-0.3.1.6 ... linking ... done.
Loading package attoparsec-0.8.5.0 ... linking ... done.
Loading package bytestring-nums-0.3.2 ... linking ... done.
Loading package bytestring-trie-0.2.3 ... linking ... done.
Loading package JSONb-1.0.3 ... linking ... done.
Loading package attempt-0.3.0 ... linking ... done.
Loading package convertible-text-0.3.0.9 ... linking ... done.
Loading package data-object-json-0.3.1.5 ... linking ... done.
Loading package attoparsec-enumerator-0.2.0.3 ... linking ... done.
Loading package network-bytestring-0.1.3.4 ... linking ... done.
Loading package asn1-data-0.4.6 ... linking ... done.
Loading package certificate-0.7.0 ... linking ... done.
   

Re: [Haskell-cafe] Haddock fails on parsing Hamlet

2011-03-12 Thread Mathew de Detrich
Don't need to worry about this, its being fixed in the next release of
hamlet

On Sun, Mar 13, 2011 at 1:25 AM, Mathew de Detrich dete...@gmail.comwrote:

 Since the site for signing up to haddock mailing list seems to be down (
 http://projects.haskell.org/cgi-bin/mailman/listinfo/haddock) I thought I
 would post this here

 Haddock fails to parse (and therefore closes prematurely) when generating
 documentation for the Hamlet package found here (
 http://hackage.haskell.org/package/hamlet). This furthermore prevents the
 hamlet from being built on archlinux using cabal2arch/AUR/bauerbill

 The error when creating the documentation is
 Warning: Text.Hamlet.Quasi: We do not support associated types in instances
 yet. These instances are affected:
 Text.Hamlet.Quasi.HamletValue (Text.Hamlet.Quasi.Hamlet url),
 Text.Hamlet.Quasi.HamletValue Text.Blaze.Internal.Html
 haddock coverage for dist/build/tmp17309/Text/Hamlet/Quasi.hs:9/14  64%

 dist/build/tmp17309/Text/Cassius.hs:340:23:
 parse error on input `AbsoluteUnit'
 Aborting...

 On the previous haskell-platform this did not happen

 Thanks

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


Re: [Haskell-cafe] Yesod 0.7.1 using GHC 7.0.2 on Arch Linux

2011-03-12 Thread Ertugrul Soeylemez
Hello Ryan,

thanks a lot.

Is there a workaround for this, until it's fixed?


Greets,
Ertugrul


Ryan Yates fryguy...@gmail.com wrote:

 Looks to be reported here:
 
 http://hackage.haskell.org/trac/ghc/ticket/5004
 
 
 http://hackage.haskell.org/trac/ghc/ticket/5004Ryan
 
 On Sat, Mar 12, 2011 at 3:26 PM, Ertugrul Soeylemez e...@ertes.de wrote:
 
  Hello there,
 
  today I have upgraded to GHC 7.0.2 by doing a system update on my Arch
  Linux box (x86, 32 bits), and I'm having difficulties to install Yesod.
  Its dependencies seem to have been installed without problems, but the
  Yesod package itself fails.  The complete build log follows:
 
 % cabal install yesod
 Resolving dependencies...
 Configuring yesod-0.7.1...
 Preprocessing library yesod-0.7.1...
 Preprocessing executables for yesod-0.7.1...
 Building yesod-0.7.1...
 [1 of 1] Compiling Yesod( Yesod.hs, dist/build/Yesod.o )
 Registering yesod-0.7.1...
 [1 of 2] Compiling CodeGen  ( CodeGen.hs,
  dist/build/yesod/yesod-tmp/CodeGen.o )
 [2 of 2] Compiling Main ( scaffold.hs,
  dist/build/yesod/yesod-tmp/Main.o )
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package bytestring-0.9.1.10 ... linking ... done.
 Loading package base64-bytestring-0.1.0.2 ... linking ... done.
 Loading package array-0.3.0.2 ... linking ... done.
 Loading package containers-0.4.0.0 ... linking ... done.
 Loading package cereal-0.3.0.0 ... linking ... done.
 Loading package filepath-1.2.0.0 ... linking ... done.
 Loading package old-locale-1.0.0.2 ... linking ... done.
 Loading package old-time-1.0.0.6 ... linking ... done.
 Loading package unix-2.4.2.0 ... linking ... done.
 Loading package directory-1.1.0.0 ... linking ... done.
 Loading package binary-0.5.0.2 ... linking ... done.
 Loading package data-default-0.2.0.1 ... linking ... done.
 Loading package tagged-0.2 ... linking ... done.
 Loading package crypto-api-0.5.2 ... linking ... done.
 Loading package pureMD5-2.1.0.3 ... linking ... done.
 Loading package pretty-1.0.1.2 ... linking ... done.
 Loading package template-haskell ... linking ... done.
 Loading package transformers-0.2.2.0 ... linking ... done.
 Loading package deepseq-1.1.0.2 ... linking ... done.
 Loading package text-0.11.0.5 ... linking ... done.
 Loading package blaze-builder-0.2.1.4 ... linking ... done.
 Loading package blaze-html-0.4.1.0 ... linking ... done.
 Loading package file-embed-0.0.3.1 ... linking ... done.
 Loading package time-1.2.0.3 ... linking ... done.
 Loading package unix-compat-0.2.1.1 ... linking ... done.
 Loading package enumerator-0.4.7 ... linking ... done.
 Loading package mtl-2.0.1.0 ... linking ... done.
 Loading package parsec-3.1.1 ... linking ... done.
 Loading package network-2.2.1.10 ... linking ... done.
 Loading package wai-0.3.2 ... linking ... done.
 Loading package utf8-string-0.3.6 ... linking ... done.
 Loading package web-routes-0.23.4 ... linking ... done.
 Loading package wai-app-static-0.0.1.1 ... linking ... done.
 Loading package random-1.0.0.3 ... linking ... done.
 Loading package clientsession-0.4.1 ... linking ... done.
 Loading package cookie-0.0.0 ... linking ... done.
 Loading package failure-0.1.0.1 ... linking ... done.
 Loading package extensible-exceptions-0.1.1.2 ... linking ... done.
 Loading package QuickCheck-2.4.0.1 ... linking ... done.
 Loading package blaze-builder-enumerator-0.2.0.1 ... linking ... done.
 Loading package json-types-0.1 ... linking ... done.
 Loading package json-enumerator-0.0.1 ... linking ... done.
 Loading package hamlet-0.7.2 ... linking ... done.
 Loading package monad-peel-0.1 ... linking ... done.
 Loading package zlib-0.5.3.1 ... linking ... done.
 Loading package zlib-bindings-0.0.0 ... linking ... done.
 Loading package wai-extra-0.3.3 ... linking ... done.
 Loading package web-routes-quasi-0.6.3.1 ... linking ... done.
 Loading package yesod-core-0.7.0.1 ... linking ... done.
 Loading package yesod-static-0.0.0.1 ... linking ... done.
 Loading package SHA-1.4.1.3 ... linking ... done.
 Loading package RSA-1.0.6.1 ... linking ... done.
 Loading package data-object-0.3.1.6 ... linking ... done.
 Loading package attoparsec-0.8.5.0 ... linking ... done.
 Loading package bytestring-nums-0.3.2 ... linking ... done.
 Loading package bytestring-trie-0.2.3 ... linking ... done.
 Loading package JSONb-1.0.3 ... linking ... done.
 Loading package attempt-0.3.0 ... linking ... done.
 Loading package convertible-text-0.3.0.9 ... linking ... done.
 Loading package data-object-json-0.3.1.5 ... linking ... done.
 Loading package 

Re: [Haskell-cafe] Yesod 0.7.1 using GHC 7.0.2 on Arch Linux

2011-03-12 Thread Ertugrul Soeylemez
Oh, I just noticed the other thread about this issue.  Compiling Yesod
with the -fproduction flag solved it.

Thanks to Michael for that.


Greets,
Ertugrul


Ertugrul Soeylemez e...@ertes.de wrote:

 Hello Ryan,
 
 thanks a lot.
 
 Is there a workaround for this, until it's fixed?
 
 
 Greets,
 Ertugrul
 
 
 Ryan Yates fryguy...@gmail.com wrote:
 
  Looks to be reported here:
  
  http://hackage.haskell.org/trac/ghc/ticket/5004
  
  
  http://hackage.haskell.org/trac/ghc/ticket/5004Ryan
  
  On Sat, Mar 12, 2011 at 3:26 PM, Ertugrul Soeylemez e...@ertes.de wrote:
  
   Hello there,
  
   today I have upgraded to GHC 7.0.2 by doing a system update on my Arch
   Linux box (x86, 32 bits), and I'm having difficulties to install Yesod.
   Its dependencies seem to have been installed without problems, but the
   Yesod package itself fails.  The complete build log follows:
  
  % cabal install yesod
  Resolving dependencies...
  Configuring yesod-0.7.1...
  Preprocessing library yesod-0.7.1...
  Preprocessing executables for yesod-0.7.1...
  Building yesod-0.7.1...
  [1 of 1] Compiling Yesod( Yesod.hs, dist/build/Yesod.o )
  Registering yesod-0.7.1...
  [1 of 2] Compiling CodeGen  ( CodeGen.hs,
   dist/build/yesod/yesod-tmp/CodeGen.o )
  [2 of 2] Compiling Main ( scaffold.hs,
   dist/build/yesod/yesod-tmp/Main.o )
  Loading package ghc-prim ... linking ... done.
  Loading package integer-gmp ... linking ... done.
  Loading package base ... linking ... done.
  Loading package bytestring-0.9.1.10 ... linking ... done.
  Loading package base64-bytestring-0.1.0.2 ... linking ... done.
  Loading package array-0.3.0.2 ... linking ... done.
  Loading package containers-0.4.0.0 ... linking ... done.
  Loading package cereal-0.3.0.0 ... linking ... done.
  Loading package filepath-1.2.0.0 ... linking ... done.
  Loading package old-locale-1.0.0.2 ... linking ... done.
  Loading package old-time-1.0.0.6 ... linking ... done.
  Loading package unix-2.4.2.0 ... linking ... done.
  Loading package directory-1.1.0.0 ... linking ... done.
  Loading package binary-0.5.0.2 ... linking ... done.
  Loading package data-default-0.2.0.1 ... linking ... done.
  Loading package tagged-0.2 ... linking ... done.
  Loading package crypto-api-0.5.2 ... linking ... done.
  Loading package pureMD5-2.1.0.3 ... linking ... done.
  Loading package pretty-1.0.1.2 ... linking ... done.
  Loading package template-haskell ... linking ... done.
  Loading package transformers-0.2.2.0 ... linking ... done.
  Loading package deepseq-1.1.0.2 ... linking ... done.
  Loading package text-0.11.0.5 ... linking ... done.
  Loading package blaze-builder-0.2.1.4 ... linking ... done.
  Loading package blaze-html-0.4.1.0 ... linking ... done.
  Loading package file-embed-0.0.3.1 ... linking ... done.
  Loading package time-1.2.0.3 ... linking ... done.
  Loading package unix-compat-0.2.1.1 ... linking ... done.
  Loading package enumerator-0.4.7 ... linking ... done.
  Loading package mtl-2.0.1.0 ... linking ... done.
  Loading package parsec-3.1.1 ... linking ... done.
  Loading package network-2.2.1.10 ... linking ... done.
  Loading package wai-0.3.2 ... linking ... done.
  Loading package utf8-string-0.3.6 ... linking ... done.
  Loading package web-routes-0.23.4 ... linking ... done.
  Loading package wai-app-static-0.0.1.1 ... linking ... done.
  Loading package random-1.0.0.3 ... linking ... done.
  Loading package clientsession-0.4.1 ... linking ... done.
  Loading package cookie-0.0.0 ... linking ... done.
  Loading package failure-0.1.0.1 ... linking ... done.
  Loading package extensible-exceptions-0.1.1.2 ... linking ... done.
  Loading package QuickCheck-2.4.0.1 ... linking ... done.
  Loading package blaze-builder-enumerator-0.2.0.1 ... linking ... done.
  Loading package json-types-0.1 ... linking ... done.
  Loading package json-enumerator-0.0.1 ... linking ... done.
  Loading package hamlet-0.7.2 ... linking ... done.
  Loading package monad-peel-0.1 ... linking ... done.
  Loading package zlib-0.5.3.1 ... linking ... done.
  Loading package zlib-bindings-0.0.0 ... linking ... done.
  Loading package wai-extra-0.3.3 ... linking ... done.
  Loading package web-routes-quasi-0.6.3.1 ... linking ... done.
  Loading package yesod-core-0.7.0.1 ... linking ... done.
  Loading package yesod-static-0.0.0.1 ... linking ... done.
  Loading package SHA-1.4.1.3 ... linking ... done.
  Loading package RSA-1.0.6.1 ... linking ... done.
  Loading package data-object-0.3.1.6 ... linking ... done.
  Loading package attoparsec-0.8.5.0 ... linking ... done.
  Loading package bytestring-nums-0.3.2 ... linking ... done.
  Loading package bytestring-trie-0.2.3 

Re: [Haskell-cafe] Yesod 0.7.1 using GHC 7.0.2 on Arch Linux

2011-03-12 Thread vagif . verdi
No, it is not solved.
With -fproduction flag you are loosing devel-server functionality.

On Saturday, March 12, 2011 02:45:11 PM Ertugrul Soeylemez wrote:
 Oh, I just noticed the other thread about this issue.  Compiling Yesod
 with the -fproduction flag solved it.
 
 Thanks to Michael for that.
 
 
 Greets,
 Ertugrul
 
 Ertugrul Soeylemez e...@ertes.de wrote:
  Hello Ryan,
  
  thanks a lot.
  
  Is there a workaround for this, until it's fixed?
  
  
  Greets,
  Ertugrul
  
  Ryan Yates fryguy...@gmail.com wrote:
   Looks to be reported here:
   
   http://hackage.haskell.org/trac/ghc/ticket/5004
   
   
   http://hackage.haskell.org/trac/ghc/ticket/5004Ryan
   
   On Sat, Mar 12, 2011 at 3:26 PM, Ertugrul Soeylemez e...@ertes.de wrote:
Hello there,

today I have upgraded to GHC 7.0.2 by doing a system update on my
Arch Linux box (x86, 32 bits), and I'm having difficulties to
install Yesod. Its dependencies seem to have been installed without
problems, but the

Yesod package itself fails.  The complete build log follows:
   % cabal install yesod
   Resolving dependencies...
   Configuring yesod-0.7.1...
   Preprocessing library yesod-0.7.1...
   Preprocessing executables for yesod-0.7.1...
   Building yesod-0.7.1...
   [1 of 1] Compiling Yesod( Yesod.hs, dist/build/Yesod.o
   ) Registering yesod-0.7.1...
   [1 of 2] Compiling CodeGen  ( CodeGen.hs,

dist/build/yesod/yesod-tmp/CodeGen.o )

   [2 of 2] Compiling Main ( scaffold.hs,

dist/build/yesod/yesod-tmp/Main.o )

   Loading package ghc-prim ... linking ... done.
   Loading package integer-gmp ... linking ... done.
   Loading package base ... linking ... done.
   Loading package bytestring-0.9.1.10 ... linking ... done.
   Loading package base64-bytestring-0.1.0.2 ... linking ... done.
   Loading package array-0.3.0.2 ... linking ... done.
   Loading package containers-0.4.0.0 ... linking ... done.
   Loading package cereal-0.3.0.0 ... linking ... done.
   Loading package filepath-1.2.0.0 ... linking ... done.
   Loading package old-locale-1.0.0.2 ... linking ... done.
   Loading package old-time-1.0.0.6 ... linking ... done.
   Loading package unix-2.4.2.0 ... linking ... done.
   Loading package directory-1.1.0.0 ... linking ... done.
   Loading package binary-0.5.0.2 ... linking ... done.
   Loading package data-default-0.2.0.1 ... linking ... done.
   Loading package tagged-0.2 ... linking ... done.
   Loading package crypto-api-0.5.2 ... linking ... done.
   Loading package pureMD5-2.1.0.3 ... linking ... done.
   Loading package pretty-1.0.1.2 ... linking ... done.
   Loading package template-haskell ... linking ... done.
   Loading package transformers-0.2.2.0 ... linking ... done.
   Loading package deepseq-1.1.0.2 ... linking ... done.
   Loading package text-0.11.0.5 ... linking ... done.
   Loading package blaze-builder-0.2.1.4 ... linking ... done.
   Loading package blaze-html-0.4.1.0 ... linking ... done.
   Loading package file-embed-0.0.3.1 ... linking ... done.
   Loading package time-1.2.0.3 ... linking ... done.
   Loading package unix-compat-0.2.1.1 ... linking ... done.
   Loading package enumerator-0.4.7 ... linking ... done.
   Loading package mtl-2.0.1.0 ... linking ... done.
   Loading package parsec-3.1.1 ... linking ... done.
   Loading package network-2.2.1.10 ... linking ... done.
   Loading package wai-0.3.2 ... linking ... done.
   Loading package utf8-string-0.3.6 ... linking ... done.
   Loading package web-routes-0.23.4 ... linking ... done.
   Loading package wai-app-static-0.0.1.1 ... linking ... done.
   Loading package random-1.0.0.3 ... linking ... done.
   Loading package clientsession-0.4.1 ... linking ... done.
   Loading package cookie-0.0.0 ... linking ... done.
   Loading package failure-0.1.0.1 ... linking ... done.
   Loading package extensible-exceptions-0.1.1.2 ... linking ...
   done. Loading package QuickCheck-2.4.0.1 ... linking ... done.
   Loading package blaze-builder-enumerator-0.2.0.1 ... linking ...
   done. Loading package json-types-0.1 ... linking ... done.
   Loading package json-enumerator-0.0.1 ... linking ... done.
   Loading package hamlet-0.7.2 ... linking ... done.
   Loading package monad-peel-0.1 ... linking ... done.
   Loading package zlib-0.5.3.1 ... linking ... done.
   Loading package zlib-bindings-0.0.0 ... linking ... done.
   Loading package wai-extra-0.3.3 ... linking ... done.
   Loading package web-routes-quasi-0.6.3.1 ... linking ... done.
   Loading package yesod-core-0.7.0.1 ... linking ... done.
   Loading package yesod-static-0.0.0.1 ... linking ... done.
   Loading package SHA-1.4.1.3 ... linking ... done.
   Loading 

[Haskell-cafe] [ANN] new version of uu-parsinglib

2011-03-12 Thread S. Doaitse Swierstra
Version 2.7.0 was uploaded to hackage. 

From the CHANGELOG:

Version 2.7.0
Improvement: change of error correction at end of amb (which deals with 
ambiguous parsers) combinator; available lookahead is better taken into account

Relatively large change:
• Change to Data.ListLike inputs, so a general stream input structure 
is possible; hence we can now parse all instances from Data.ListLike
• Simplified and generalised implementation of merging/permuting 
parsers; any kind of parsers can now be merged/permuted
• New class IsParser was introduced which captures the basic properties 
of our parsers, thus simplifying the types
• Inclusion of a module Text.ParserCombinators.UU.Utils containing 
common Char based parsers 
• Removal of the class Provides, and replaced by separate pSym, 
pSatisfy and pRange; this may require some rewriting of existing parsers. 
  Readability is supposed to improve from that. Types become simpler. 
For an example see the module Text.ParserCombinators.UU.Utils.
• Included a Demo directory, with one module for demonstrating normal 
parsers and one aimed at showing merging parsers
• Added the module Text.ParserCombinaors.UU.Idioms, which contains 
specialised version for the idiomatic notation; 
  it infers the sequental composition operators from the types of the 
operands; 
  String-s and Char-s are not supposed to contribute to the result 
(hence *), function parameters are lifted using `pure`, and normal parsers are 
composed with `*`.
• Many other small changes, mostly upwards compatible or invisible 
(code cleanup)

For some examples see: 
http://hackage.haskell.org/packages/archive/uu-parsinglib/2.7.0/doc/html/Text-ParserCombinators-UU-Demo-Examples.html
  and: 
http://hackage.haskell.org/packages/archive/uu-parsinglib/2.7.0/doc/html/Text-ParserCombinators-UU-Demo-MergeAndPermute.html
  and: 
http://hackage.haskell.org/packages/archive/uu-parsinglib/2.7.0/doc/html/Text-ParserCombinators-UU-Idioms.html
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] writing to a fifo when the reader stops reading

2011-03-12 Thread briand
Hi all,

here's the code:

writer =
  do threadDelay 10
 threadWaitWrite fd
 fdWrite fd ((show x) ++ \n)
 writer fd (x+1)


pretty simple, it just keeps writing.  What happens though is that,
eventually, the reader goes away, i.e. closes the fifo.

When that happens I get:

ghc: fdWriteBuf: resource vanished (Broken pipe)


which make sense, sort of.  I write a value, let's say 10, and the
reader reads it.  It's the last value so it closes the fifo.

Now there's nothing reading, so when I get to threadWaitWrite, I would
expect the program to wait, just as it does when it starts up and there
is no reader.

looking for some guidance.

Thank you,


Brian



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


Re: [Haskell-cafe] Haddock fails on parsing Hamlet

2011-03-12 Thread David Waern
2011/3/12 Mathew de Detrich dete...@gmail.com:
 Don't need to worry about this, its being fixed in the next release of
 hamlet

So was it a bug in Haddock that you've worked around or something else?

Thanks,
David

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


Re: [Haskell-cafe] Haddock fails on parsing Hamlet

2011-03-12 Thread Michael Snoyman
On Sun, Mar 13, 2011 at 9:47 AM, David Waern david.wa...@gmail.com wrote:
 2011/3/12 Mathew de Detrich dete...@gmail.com:
 Don't need to worry about this, its being fixed in the next release of
 hamlet

 So was it a bug in Haddock that you've worked around or something else?

 Thanks,
 David

I released a new version of Hamlet which changed how the Haddocks were
written. I do not believe it was a bug in Haddock, but in the comments
in Hamlet itself.

Michael

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