Re: [Haskell-cafe] F# mailing list?

2009-09-27 Thread Jon Harrop
On Saturday 27 June 2009 18:31:25 GüŸnther Schmidt wrote: > Hi guys, > > is there a mailing list for haskellers that defected to F#? Here's the F# mailing list on Google Groups: http://groups.google.com/group/fsharp?hl=en -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy

Re: [Haskell-cafe] F# mailing list?

2009-06-27 Thread Anton Tayanovskyy
Hi Günther, I would be interested in one too. I'm a Haskeller currently working for an F# shop. There's hubFS but I would absolutely prefer a mailing list. --A On Sat, Jun 27, 2009 at 8:31 PM, GüŸnther Schmidt wrote: > Hi guys, > > is there a mailing list for haskellers that defected to F#? > > No

[Haskell-cafe] F# mailing list?

2009-06-27 Thread GüŸnther Schmidt
Hi guys, is there a mailing list for haskellers that defected to F#? Not that I was I going to, just asking, absolutely hypothetically. Uhm. Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskel

Re: [Haskell-cafe] F# active patterns versus GHC's view

2009-01-16 Thread John Van Enk
Peter, I think that's correct. I would really love to be able to make alternate constructors and views. I know we can make "specialized" constructors, but I don't think there's a good way to pattern match on these. It would be pretty sweet if we could. /jve On Fri, Jan 16, 2009 at 11:14 AM, Pete

Re: [Haskell-cafe] F# active patterns versus GHC's view

2009-01-16 Thread Peter Verswyvelen
As far as I understand, record syntax and data accessor only give access to the data, they don't provide alternate views / interpretations of the data, something that Active Patterns or view patterns in Haskell do? On Fri, Jan 16, 2009 at 4:27 PM, Henning Thielemann < lemm...@henning-thielemann.de>

Re: [Haskell-cafe] F# active patterns versus GHC's view

2009-01-16 Thread Henning Thielemann
On Fri, 16 Jan 2009, John Van Enk wrote: 2009/1/16 Peter Verswyvelen [...] After a while you decide that you need to change the Bla data type, maybe give Dog more fields, maybe completely redesign it, maybe not exposing it, but you want to keep existing code backwards compatible. With F# yo

Re: [Haskell-cafe] F# active patterns versus GHC's view

2009-01-16 Thread John Van Enk
2009/1/16 Peter Verswyvelen > [...] > > After a while you decide that you need to change the Bla data type, maybe > give Dog more fields, maybe completely redesign it, maybe not exposing it, > but you want to keep existing code backwards compatible. With F# you can > write Active Patterns for the

Re: [Haskell-cafe] F# active patterns versus GHC's view

2009-01-16 Thread Peter Verswyvelen
Hi Luke, On Fri, Jan 16, 2009 at 2:31 AM, Luke Palmer wrote: > However, I think it is flawed, since the following >> >> case c of >> Polar _ _ -> "it's polar!" >> Rect _ _ -> "it's rect!" >> >> seems like valid code but does not make any sense. >> > > I think it's okay, given that we u

Re: [Haskell-cafe] F# active patterns versus GHC's view

2009-01-15 Thread Luke Palmer
2009/1/15 Peter Verswyvelen > When I first read about active patterns in F#, I found it really cool idea, > since it allows creating fake data constructors that can be used for pattern > matching, giving many views to a single piece of data, and allowing > backwards compatibility when you complet

Re: [Haskell-cafe] F# active patterns versus GHC's view

2009-01-15 Thread andy morris
If you don't mind using GHC extensions (which in a view pattern thread probably isn't much of a stretch to assume :) ), there's always record punning (-XNamedFieldPuns): data Foo = { [snip] } f (Foo { a, g }) = ... 2009/1/15 John Van Enk : > I've often thought having constructor "views" w

Re: [Haskell-cafe] F# active patterns versus GHC's view

2009-01-15 Thread John Van Enk
I've often thought having constructor "views" would be handy. data Foo = Foo A B C D E F G H I view Bar = (Foo A _ C _ _ _ G _ I) => Bar A C G I This does bring up problems with case alternatives though. I think the correct answer for these kinds of views is with the record pattern matching synt

[Haskell-cafe] F# active patterns versus GHC's view

2009-01-15 Thread Peter Verswyvelen
When I first read about active patterns in F#, I found it really cool idea, since it allows creating fake data constructors that can be used for pattern matching, giving many views to a single piece of data, and allowing backwards compatibility when you completely change or hide a data structure. S

[Haskell-cafe] f(g(x), h(y)) - Correct syntax

2008-02-11 Thread [EMAIL PROTECTED]
Hallo! I have this code: q1 :: EName -> [ApprenticeInfo] q1 c = [apprenticeInfo n | n <- allApprentices, member ((sq4 c) (firstOf5(n))) == True] sq4 :: ESurname -> [IDB] sq4 c = (sq3 (sq1 (c))) firstOf5 :: (a,b,c,d,e) -> a firstOf5 (n,_,_,_,_) = n member

Re: [Haskell-cafe] f(g(x), h(y)) - Correct syntax

2008-02-11 Thread Henning Thielemann
On Mon, 11 Feb 2008, [EMAIL PROTECTED] wrote: > Hallo! > > I have this code: > > q1 :: EName -> [ApprenticeInfo] > q1 c = [apprenticeInfo n | n <- allApprentices, member ((sq4 > c) (firstOf5(n))) == True] > > sq4 :: ESurname -> [IDB] > sq4 c = (sq3 (sq1 (c

Re: [Haskell-cafe] f(g(x), h(y)) - Correct syntax

2008-02-11 Thread Luke Palmer
On Feb 11, 2008 2:27 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hallo! > > I have this code: > > q1 :: EName -> [ApprenticeInfo] > q1 c = [apprenticeInfo n | n <- allApprentices, member ((sq4 > c) (firstOf5(n))) == True] > > sq4 :: ESurname -> [IDB]

Re: [Haskell-cafe] -f flag to runghc broken, or is it just me? (because trying switch elegantly between ghc 6.6 and ghc 6.7)

2007-08-22 Thread Ian Lynagh
On Wed, Aug 22, 2007 at 01:38:39PM -0400, Thomas Hartman wrote: > > $ runghc -f /usr/local/bin/ghc-6.6.1 arghandling-nice.hs > > does nothing. Contrary to the usage message, you aren't actually allowed a space after "-f" in 6.6.1 (but you are in 6.7). Use runghc -f/usr/local/bin/ghc-6.6.1 a

Re: workaround found, pipe it through ghci Re: [Haskell-cafe] -f flag to runghc broken, or is it just me? (because trying switch elegantly between ghc 6.6 and ghc 6.7)

2007-08-22 Thread Brent Yorgey
> > this works. now if only there were a "quiet" option for ghci... > > But there is! It's called -v0. -Brent ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

workaround found, pipe it through ghci Re: [Haskell-cafe] -f flag to runghc broken, or is it just me? (because trying switch elegantly between ghc 6.6 and ghc 6.7)

2007-08-22 Thread Thomas Hartman
M To "haskell-cafe@haskell.org" cc Subject [Haskell-cafe] -f flag to runghc broken, or is it just me? (because trying switch elegantly between ghc 6.6 and ghc 6.7) I'm doing a lot of switching between ghc 6.6 and ghc 6.7 on the same computer. I install modules using $ r

[Haskell-cafe] -f flag to runghc broken, or is it just me? (because trying switch elegantly between ghc 6.6 and ghc 6.7)

2007-08-22 Thread Thomas Hartman
I'm doing a lot of switching between ghc 6.6 and ghc 6.7 on the same computer. I install modules using $ runghc Setup.hs configure etc. I would like to specify which version of ghc should be getting the package installed via the f flag to runghc $ :~/personal/PersonalRepos/pharchive/

RE: [Haskell-cafe] F#

2007-07-17 Thread Simon Peyton-Jones
| > Has anyone tried out F#? | | Yes. We've been using F# for 9 months now and have several products | written in | it. | | > Is this a taboo subject here? | Probably. ;-) Not at all! But there is a very active F# community that would be much more knowledgeable about F# than Haskell folk are lik

Re: [Haskell-cafe] F#

2007-07-17 Thread Jon Harrop
On Tuesday 17 July 2007 14:53:20 Edward Ing wrote: > Has anyone tried out F#? Yes. We've been using F# for 9 months now and have several products written in it. > Is this a taboo subject here? Probably. ;-) -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffcon

Re: [Haskell-cafe] F#

2007-07-17 Thread Antoine Latter
I've been meaning to tackle F# as my ML of choice (seeing as I'll need to get comfortable with .Net, I may as well hit two birds with one stone). I've been waiting for the text /Expert F#/ to come out, as it looks /Foundations of F#/ is pitched towards someone learning their first functional lang

[Haskell-cafe] F#

2007-07-17 Thread Edward Ing
Has anyone tried out F#? Is this a taboo subject here? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe