[GHC] #6028: warning for cyclic unimplemented defaults

2012-04-21 Thread GHC
#6028: warning for cyclic unimplemented defaults --+- Reporter: lerkok| Owner: Type: feature request | Status: new Priority: normal|

Re: [GHC] #6028: warning for cyclic unimplemented defaults

2012-04-21 Thread GHC
#6028: warning for cyclic unimplemented defaults --+- Reporter: lerkok| Owner: Type: feature request | Status: new Priority: normal|

Re: [GHC] #5985: Type operators are not accepted as variables in contexts

2012-04-21 Thread GHC
#5985: Type operators are not accepted as variables in contexts -+-- Reporter: mikhail.vorozhtsov | Owner: Type: bug | Status: new Priority: normal

Re: [GHC] #5884: GHC panics while trying to derive a Generic instance for Complex a

2012-04-21 Thread GHC
#5884: GHC panics while trying to derive a Generic instance for Complex a -+-- Reporter: mux | Owner: dreixel Type: bug | Status: new

[GHC] #6029: GHC fails to stop at phase HCc

2012-04-21 Thread GHC
#6029: GHC fails to stop at phase HCc --+- Reporter: liuexp| Owner: Type: bug | Status: new Priority: normal| Component:

Re: [GHC] #6029: GHC fails to stop at phase HCc

2012-04-21 Thread GHC
#6029: GHC fails to stop at phase HCc --+- Reporter: liuexp| Owner: Type: bug | Status: new Priority: normal| Component:

[GHC] #6030: Typeclass constraint should pick the OverloadedString type.

2012-04-21 Thread GHC
#6030: Typeclass constraint should pick the OverloadedString type. --+- Reporter: GregWeber | Owner: Type: bug | Status: new Priority: normal

Finding/fixing stack overflow.

2012-04-21 Thread David Brown
I've isolated the below small piece of code that is giving me a stack overflow. I'm kind of at a loss as has to fix, or even find what is happening here. (The real program is reading the data from a file, and doing something more complex with it). I'm not even sure how to work around this

Re: Finding/fixing stack overflow.

2012-04-21 Thread Michal Terepeta
On 21.04 11:21, David Brown wrote: I've isolated the below small piece of code that is giving me a stack overflow. I'm kind of at a loss as has to fix, or even find what is happening here. (The real program is reading the data from a file, and doing something more complex with it). I'm not

default instance for IsString

2012-04-21 Thread Greg Weber
I would like to default IsString to use the Text instance to avoid ambiguous type errors. I see defaulting capability is available for Num. Is there any way to do this for IsString? Thanks, Greg Weber ___ Glasgow-haskell-users mailing list

Re: default instance for IsString

2012-04-21 Thread Christopher Done
Pretty sure it does default to String, anyway: {-# LANGUAGE OverloadedStrings #-} main = print (show Hello!) ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: default instance for IsString

2012-04-21 Thread Daniel Peebles
I think it'll be hard to do that without putting Text in base, which I'm not sure anyone wants to do. Dan On Sat, Apr 21, 2012 at 8:20 PM, Greg Weber g...@gregweber.info wrote: I would like to default IsString to use the Text instance to avoid ambiguous type errors. I see defaulting

Re: default instance for IsString

2012-04-21 Thread Greg Weber
my actual use case looks more like this: {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleInstances, TypeSynonymInstances #-} import Data.Text as T class ShowT a where showT :: a - String instance ShowT T.Text where showT = show instance ShowT String where showT = show main =

Re: default instance for IsString

2012-04-21 Thread Greg Weber
This is a better demonstration of the issue. I am going to open a GHC bug report, as I can't see how this behavior is desirable. {-# LANGUAGE OverloadedStrings #-} import Data.Text as T classNoDefault a where noDefault :: a - Text instance NoDefault T.Text where noDefault = id main =

[Haskell] ANN: yeganesh-2.5

2012-04-21 Thread wagnerdm
Today heralds the release of version 2.5 of the venerable yeganesh[1] menu. The suckless team produces a small program named dmenu[2] which acts like a normal Unix pipe program, accepting input on stdin and producing output on stdout, with the one caveat that it sticks the user in between. It

[Haskell] Call for Papers - Haskell Symposium 2012 - six weeks to go

2012-04-21 Thread Janis Voigtländer
Haskell 2012 ACM SIGPLAN Haskell Symposium 2012 Copenhagen, Denmark 13th September, 2012

Re: [Haskell] Types of when and unless in Control.Monad

2012-04-21 Thread John Meacham
Yes, this has always bothered me too. John On Sat, Apr 21, 2012 at 2:51 AM, Andreas Abel andreas.a...@ifi.lmu.de wrote: In Control.Monad, when has type  when :: Monad m = Bool - m () - m () I think this type should be generalized to  when :: Monad m = Bool - m a - m () to avoid silly

Re: [Haskell] Types of when and unless in Control.Monad

2012-04-21 Thread Strake
On 21/04/2012, Andreas Abel andreas.a...@ifi.lmu.de wrote: to avoid silly return () statements like in when cond $ do monadicComputationWhoseResultIWantToDiscard return () (when cond ∘ void) monadicComputationWhoseResultIWantToDiscard or when cond $ () $

Re: [Haskell-cafe] why are applicative functors (often) faster than monads? (WAS Google Summer of Code - Lock-free data structures)

2012-04-21 Thread Heinrich Apfelmus
Ben wrote: however, this does bring up a general question : why are applicative functors (often) faster than monads? malcolm wallace mentioned this is true for polyparse, and heinrich mentioned this is true more generally. is there a yoga by which one can write monadic functors which have a

[Haskell-cafe] [ANN] blaze-html-0.5

2012-04-21 Thread Jasper Van der Jeugt
Hello all, I've just released a new version of blaze-html on Hackage. It has some backward-incompatible changes, so feel free to contact me if you run into any trouble. Summary of changes: - Split into blaze-markup and blaze-html - Easy creation of custom HTML elements - Very simple HTML tree

[Haskell-cafe] Problem Installing ad (Automatic Differentiation) Package

2012-04-21 Thread Dominic Steinitz
Hi, I was trying to install ad (Automatic Differentiation) but got the following error. I guess the answer is to upgrade my ghc (perhaps someone could confirm) but I am using the Haskell Platform and would rather stick with that. I see from http://hackage.haskell.org/platform/ that the next

[Haskell-cafe] Parameterize constraints of existentially quantified types

2012-04-21 Thread Bas van Dijk
Hi, I just found out that with the new ConstraintKinds extension we can parameterize the constraint of an existentially quantified type: {-# LANGUAGE KindSignatures, ConstraintKinds, ExistentialQuantification #-} import GHC.Exts data Some (c :: * - Constraint) = forall a. c a = Some a This

Re: [Haskell-cafe] Parameterize constraints of existentially quantified types

2012-04-21 Thread Gábor Lehel
On Sat, Apr 21, 2012 at 6:05 PM, Bas van Dijk v.dijk@gmail.com wrote: Hi, I just found out that with the new ConstraintKinds extension we can parameterize the constraint of an existentially quantified type: {-# LANGUAGE KindSignatures, ConstraintKinds, ExistentialQuantification #-}

Re: [Haskell-cafe] Problem Installing ad (Automatic Differentiation) Package

2012-04-21 Thread Edward Kmett
I'll need to get an older ghc version installed, so I can try to figure out what changes are needed to make template haskell bits compatible back to the current platform. 'ad' uses TH rather extensively, and sadly, the update to support ghc 7.4.1 broke a fair bit of the old code gen -- as I

[Haskell-cafe] Call for Papers - Haskell Symposium 2012 - six weeks to go

2012-04-21 Thread Janis Voigtländer
Haskell 2012 ACM SIGPLAN Haskell Symposium 2012 Copenhagen, Denmark 13th September, 2012