Re: [Haskell-cafe] Inferred type is less polymorphic than expected, depends on order

2008-10-07 Thread Jason Dagit
On Tue, Oct 7, 2008 at 1:13 AM, Ryan Ingram <[EMAIL PROTECTED]> wrote: > > You may think it doesn't matter, because you could instantiate it to > anything after the fact, but it's possible that the result of the case > statement depends on the choice of instantiation for sy; consider if > sy had a

Re: [Haskell-cafe] Re: Inferred type is less polymorphic than expected, depends on order

2008-10-07 Thread Jason Dagit
On Tue, Oct 7, 2008 at 8:02 AM, apfelmus <[EMAIL PROTECTED]> wrote: > Jason Dagit wrote: > > Ryan Ingram wrote: > >> Jason Dagit wrote: > >>> \begin{code} > >>> badOrder :: (Sealed (p x)) -> (forall b. (Sealed (q b))) ->

Re: [Haskell-cafe] ANNOUNCE: Salsa: A .NET Bridge for Haskell

2008-10-10 Thread Jason Dagit
On Fri, Oct 10, 2008 at 5:12 AM, Andrew Appleyard < [EMAIL PROTECTED]> wrote: > I'd like to announce the first release of Salsa, an experimental Haskell > library that allows Haskell programs to access .NET libraries. Wow, that's really great. I have a .NET friendly employer, so I'm happy to se

[Haskell-cafe] How to translate Haskell to other languages?

2008-10-11 Thread Jason Dagit
Hello, I was thinking about translating Haskell to other languages, python being the main one at the moment. Here is my attempt at manually encoding Haskell in Python: \begin{code} import types class thunk: '''Thunks allow us to delay a computation and they also store their value insi

Re: [Haskell-cafe] How to translate Haskell to other languages?

2008-10-11 Thread Jason Dagit
On Sat, Oct 11, 2008 at 8:55 AM, Matthew Naylor < [EMAIL PROTECTED]> wrote: > Hi Jason, > > I don't know Python, but let me share some thoughts that you might > find useful. > > First, a few questions about your manual translations. Are your > functions curried? For example, can I partially appl

Re: [Haskell-cafe] Very silly

2008-10-13 Thread Jason Dagit
On Mon, Oct 13, 2008 at 8:32 PM, Tommy M. McGuire <[EMAIL PROTECTED]> wrote: > > Java (and presumably C#) "generics" are very much like a weakened version > of normal parametric polymorphism. I'm curious, in what way are they weakened? thanks, Jason _

Re: [Haskell-cafe] ANN: hledger 0.1, command-line accounting tool

2008-10-15 Thread Jason Dagit
On Wed, Oct 15, 2008 at 5:01 PM, Simon Michael <[EMAIL PROTECTED]> wrote: > I'm pleased to announce the first release of hledger, a command-line > accounting tool similar to John Wiegley's c++ ledger. hledger generates > simple ledger-compatible transaction & account balance reports from a plain >

Re: [Haskell-cafe] List as input

2008-10-16 Thread Jason Dagit
On Thu, Oct 16, 2008 at 7:22 PM, leledumbo <[EMAIL PROTECTED]>wrote: > > > ... If there isn't enough information to set a concrete type at the > call, > type inference fails. This is what you get with strong typing. > > In my case, where does type inference fail? Strong typing is good, but > quit

Re: [Haskell-cafe] A heretic question

2008-10-19 Thread Jason Dagit
On Sun, Oct 19, 2008 at 2:08 PM, Achim Schneider <[EMAIL PROTECTED]> wrote: > What kind of things, barring coding on Haskell-less platforms and > library interfaces would you choose to do in C++? You're asking a crowd that is heavily biased towards Haskell, what they would use C++ for? You shou

Re: [Haskell-cafe] Re: [Haskell] Probably a trivial thing for people knowing Haskell

2008-10-20 Thread Jason Dagit
On Sun, Oct 19, 2008 at 11:39 PM, Chris Eidhof <[EMAIL PROTECTED]> wrote: > I think it might be more appropriate to move this discussion to > haskell-cafe. > > On 19 okt 2008, at 17:24, Friedrich wrote: > >> Learn to love types: one of the neat things about Haskell is that if >>> you can write do

[Haskell-cafe] Help converting Perl to Haskell

2008-10-21 Thread Jason Dagit
Hello, I'm not very perl literate, but I want to convert a perl script to Haskell. This bit of perl is part of darcs' test suite. I was hoping to make it "more portable" by writing it in Haskell. By more portable I mean, works in windows without cygwin/mingw/msys and avoids the need for perl al

Re: [Haskell-cafe] Help converting Perl to Haskell

2008-10-21 Thread Jason Dagit
On Tue, Oct 21, 2008 at 9:33 PM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-21 at 20:33 -0700, Jason Dagit wrote: > >> Correct me if I'm wrong, but if I want to make this work on windows I >> can't use System.Posix, right? If so, what is the

[Haskell-cafe] Hackage Improvement Ideas

2008-10-23 Thread Jason Dagit
Hello, I was thinking of fun little projects people could work on to improve Hackage: 1) Popularity statistics -- like debian's popcon, gives stats on how many people have which packages from hackage installed 2) Per package ratings and feedback listed on the page for each package 3) A way to mark

Re: [Haskell-cafe] Hackage Improvement Ideas

2008-10-23 Thread Jason Dagit
On Thu, Oct 23, 2008 at 11:40 AM, Thomas M. DuBuisson <[EMAIL PROTECTED]> wrote: > >> What else should hackage do? > Automate HPC, and quickChecks. These two make it sound like we'd almost be providing a 'buildbot'-like service. > Automatic package dep graph. Dep. graph would be cool. > Decentr

Re: [Haskell-cafe] Detecting unused read handles? (was: File handles and pipes)

2008-10-23 Thread Jason Dagit
On Thu, Oct 23, 2008 at 12:38 PM, Thomas Hartman <[EMAIL PROTECTED]> wrote: >>> Specifically I'm trying to concatenate the output of two system calls >>> into the input of a third. The following code does not get the job > > Can the left-fold enumerator described by oleg in > > http://okmij.org/ft

[Haskell-cafe] ANN: Autoproc Change of Maintainer (if you use procmail you should read this)

2008-10-24 Thread Jason Dagit
What is autoproc? - Tired writing procmail recipes by hand? You're in luck! Autoproc makes it quick and easy for Haskell programmers to make procmail recipes by using an embedded domain specific language. Once your recipes type check and compile you simply run autoproc an

[Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-27 Thread Jason Dagit
Hello, I would like to find out if any darcs users who build from the source are still using ghc 6.6? If you are such a user, please let me know. Thanks, Jason ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listin

[Haskell-cafe] Re: [darcs-users] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-28 Thread Jason Dagit
On Tue, Oct 28, 2008 at 8:32 AM, David Roundy <[EMAIL PROTECTED]> wrote: > Yes, it's important for me to be able to use the latest darcs on my > debian stable computers. Debian is nice in some ways and it's really great that stable lives up to its name, but I am sad that Debian has such old softwa

[Haskell-cafe] Re: [darcs-users] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-28 Thread Jason Dagit
On Tue, Oct 28, 2008 at 5:13 PM, Trent W. Buck <[EMAIL PROTECTED]> wrote: > "Jason Dagit" <[EMAIL PROTECTED]> writes: >> Debian is nice in some ways and it's really great that stable lives up >> to its name, but I am sad that Debian has such old softwar

[Haskell-cafe] Re: [darcs-users] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-28 Thread Jason Dagit
On Tue, Oct 28, 2008 at 4:42 PM, Juliusz Chroboczek <[EMAIL PROTECTED]> wrote: >> Debian is nice in some ways and it's really great that stable lives up >> to its name, but I am sad that Debian has such old software for so >> long. > > Jason, > > I know it's frustrating, but please understand where

Re: [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Jason Dagit
On Wed, Oct 29, 2008 at 4:17 AM, Mitchell, Neil <[EMAIL PROTECTED]> wrote: > Duncan, > > I believe the major darcs issue is the changed GADT implementation > between 6.6, so that neither 6.6 or 6.8 is a superset/subset of the > other - leading to a situation where they have to use a common subset o

Re: [darcs-users] [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Jason Dagit
On Wed, Oct 29, 2008 at 8:01 AM, David Roundy <[EMAIL PROTECTED]> wrote: > On Wed, Oct 29, 2008 at 11:17:35AM -, Mitchell, Neil wrote: >> Duncan, >> >> I believe the major darcs issue is the changed GADT implementation >> between 6.6, so that neither 6.6 or 6.8 is a superset/subset of the >> ot

Re: [darcs-users] [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Jason Dagit
On Wed, Oct 29, 2008 at 6:16 PM, Trent W. Buck <[EMAIL PROTECTED]> wrote: > David Roundy <[EMAIL PROTECTED]> writes: > >> And as far as bundled versions, it's the desire to *remove* a bundled >> version that's apparently at issue. I'm not sure why this is >> considered desirable, but apparently so

Re: [Haskell-cafe] Re: is there a way to pretty print a module?

2008-10-30 Thread Jason Dagit
On Thu, Oct 30, 2008 at 10:15 AM, Anatoly Yakovenko <[EMAIL PROTECTED]> wrote: >>> is there a way to pretty print a module? >>> like: >>> >>> module Main where >>> import Language.Haskell.TH >>> main = do >>> print $ pprint Main >>> >> haskell-src should be able to do that. > > I think haskell-src

[Haskell-cafe] Re: [darcs-users] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-30 Thread Jason Dagit
On Thu, Oct 30, 2008 at 1:22 PM, Juliusz Chroboczek <[EMAIL PROTECTED]> wrote: >> Also, note that Lenny has 6.8, and it is scheduled to become stable Real >> Soon Now. > > That's irrelevant. Lenny going stable will not cause my servers to > automatically get upgraded. > > FWIW, the experimental se

[Haskell-cafe] Re: [darcs-users] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-30 Thread Jason Dagit
On Thu, Oct 30, 2008 at 1:20 PM, Juliusz Chroboczek <[EMAIL PROTECTED]> wrote: >> I wanted to know if anyone who is using distros with 6.6 need to be >> able to build current releases of darcs from source. > > If there turns out to be a significant issue with Darcs 1, I need to be > able to build a

[Haskell-cafe] What is Haskell used for?

2008-11-13 Thread Jason Dagit
I was looking over the Hackage categories today to figure out what Haskell is *really* used for? I just really quickly sorted the categories by number of packages. It's really interesting to see System, Graphics and Network so high on the list. Clearly, next to data types and text processing, peo

[Haskell-cafe] Find unused exports

2008-11-15 Thread Jason Dagit
Hello, Has anyone already made a tool to check if exported functions, data constructors, types, etc are unused within a set of modules? For my usage it would probably suffice if the tool only compared import lists against export lists as we compile with -Wall and 99% of our imports say exactly wh

Re: [Haskell-cafe] Find unused exports

2008-11-16 Thread Jason Dagit
On Sun, Nov 16, 2008 at 5:35 AM, Thomas Schilling <[EMAIL PROTECTED]> wrote: > The relevant flag is: -ddump-minimal-imports > > See http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html#id2630684 The documentation says this: > -ddump-minimal-imports > >Dump to the file "

Re: [Haskell-cafe] Type question in instance of a class

2008-11-16 Thread Jason Dagit
On Sun, Nov 16, 2008 at 2:01 PM, Claude Heiland-Allen < [EMAIL PROTECTED]> wrote: > > I don't know how evil those language extensions are, though - I just > fiddled until it worked... The only part of FlexibleInstances that you've used here is the ability to mention a type variable more than onc

Re: [Haskell-cafe] Find unused exports

2008-11-16 Thread Jason Dagit
On Sun, Nov 16, 2008 at 5:10 PM, Michael D. Adams <[EMAIL PROTECTED]>wrote: > Within a set of modules, the minimal imports also give you the minimal > exports since each minimal export is required because it is imported > somewhere. Just compile all your modules with -ddump-minimal-imports, > the

Re: [Haskell-cafe] Re: Find unused exports

2008-11-17 Thread Jason Dagit
On Mon, Nov 17, 2008 at 4:36 PM, Ivan Lazar Miljenovic < [EMAIL PROTECTED]> wrote: > Jason Dagit codersbase.com> writes: > > > > > Hello, > > > > Has anyone already made a tool to check if exported functions, data > > constructors, types, e

Re: [Haskell-cafe] GHC 6.10.1 and cabal[-install]

2008-11-18 Thread Jason Dagit
On Tue, Nov 18, 2008 at 1:51 PM, Andrew Coppin <[EMAIL PROTECTED]>wrote: > Duncan Coutts wrote: > >> The Cabal package provides the library. The cabal-install package >> provides the 'cabal' command line tool. >> >> The deprecated package you're thinking of is cabal-get or cabal-setup. >> >> > > W

Re: [Haskell-cafe] GHC 6.10.1 and cabal[-install]

2008-11-18 Thread Jason Dagit
On Tue, Nov 18, 2008 at 2:00 PM, Andrew Coppin <[EMAIL PROTECTED]>wrote: > Jason Dagit wrote: > > >> >> On Tue, Nov 18, 2008 at 1:51 PM, Andrew Coppin < >> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: >> >>Duncan Coutts wrote:

Re: [Haskell-cafe] GHC 6.10.1 and cabal[-install]

2008-11-18 Thread Jason Dagit
On Tue, Nov 18, 2008 at 2:03 PM, Jason Dagit <[EMAIL PROTECTED]> wrote: > > > On Tue, Nov 18, 2008 at 2:00 PM, Andrew Coppin < > [EMAIL PROTECTED]> wrote: > >> Jason Dagit wrote: >> >> >>> >>> On Tue, Nov 18, 2008 at 1:51 PM, Andrew C

Re: [Haskell-cafe] monads with take-out options

2008-11-24 Thread Jason Dagit
2008/11/24 Greg Meredith <[EMAIL PROTECTED]> > Haskellians, > Some monads come with take-out options, e.g. > >- List >- Set > > In the sense that if unit : A -> List A is given by unit a = [a], then > taking the head of a list can be used to retrieve values from inside the > monad. > > Som

Re: [Haskell-cafe] IRC question

2008-11-25 Thread Jason Dagit
On Tue, Nov 25, 2008 at 11:04 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > aapo: > > Galchin, Vasili kirjoitti: > > >Hello, > > > > > > I am using Ubuntu Linux and I want to get the Haskell IRC feed. What > > >IRC client can I use and how to configure? > > > > > >Thanks, Vasili > > > > > > > > >-

Re: [Haskell-cafe] workarounds for Codec.Compression.Zlib errors in darcs

2008-11-26 Thread Jason Dagit
On Wed, Nov 26, 2008 at 3:16 PM, Malcolm Wallace < [EMAIL PROTECTED]> wrote: > ... to work out the C types and then map them to Haskell ones, to >> check they're the same as the declared types in the .hs files. >> > > I'd like to point out that the FFI specification already has such a > mechanism.

Re: [Haskell-cafe] Compilers

2008-11-26 Thread Jason Dagit
On Wed, Nov 26, 2008 at 6:19 PM, Richard O'Keefe <[EMAIL PROTECTED]> wrote: > > On 27 Nov 2008, at 10:56 am, Andrew Coppin wrote: > >> Donnie Jones wrote: >> >>> Here is the current homepage for the LHC project: >>> http://lhc.seize.it/ >>> Yes. I found that - it just didn't *say* very much. ;-)

Re: [Haskell-cafe] Re: Go Haskell!

2008-11-27 Thread Jason Dagit
On Thu, Nov 27, 2008 at 1:20 PM, Claus Reinke <[EMAIL PROTECTED]>wrote: > What do those folks working on parallel Haskell arrays think about the >>> sequential Haskell array baseline performance? >>> >> >> Try using a fast array library like uvector? (With no serious overhead for >> tuples too, fw

Re: [Haskell-cafe] Compilers

2008-11-28 Thread Jason Dagit
On Fri, Nov 28, 2008 at 7:30 PM, John Meacham <[EMAIL PROTECTED]> wrote: > On Wed, Nov 26, 2008 at 07:20:12PM -0800, Jason Dagit wrote: > > I spoke with the author of the fork a bit in IRC around the time it > happened > > and my understanding is that: > > 1) John

Re: [Haskell-cafe] Compilers

2008-11-29 Thread Jason Dagit
On Sat, Nov 29, 2008 at 2:41 AM, John Meacham <[EMAIL PROTECTED]> wrote: > On Fri, Nov 28, 2008 at 07:41:42PM -0800, Don Stewart wrote: > > john: > > > On Wed, Nov 26, 2008 at 07:20:12PM -0800, Jason Dagit wrote: > > > > I spoke with the author of the

Re: [Haskell-cafe] I read somewhere that for 90% of a wide class of computing problems, you only need 10% of the source code in Haskell, that you would in an imperative language.

2009-09-29 Thread Jason Dagit
On Tue, Sep 29, 2009 at 5:24 PM, Casey Hawthorne wrote: > I read somewhere that for 90% of a wide class of computing problems, > you only need 10% of the source code in Haskell, that you would in an > imperative language. > > If this is true, it needs to be pushed. > > And if by changing a few li

Re: [Haskell-cafe] Any working example of using genericserialize?

2009-09-30 Thread Jason Dagit
On Wed, Sep 30, 2009 at 3:37 AM, Dimitry Golubovsky wrote: > Hi, > > I am trying to use the genericserialize package > (http://hackage.haskell.org/package/genericserialize) but cannot get > things working. > > While > buildList (sexpSerialize [1, 2, 3]) > > yields > > "(1 2 3)" > > as it might be

Re: [Haskell-cafe] What is a number. (Was: Num instances for 2-dimensional types)

2009-10-05 Thread Jason Dagit
On Mon, Oct 5, 2009 at 11:02 AM, Sönke Hahn wrote: > > > > On 5 Oct 2009, at 21:06, Lennart Augustsson wrote: > > > OK, "just pairs" have no arithmetic, but one way of defining > > > arithmetic is to treat the pairs as complex numbers. Or as mantissa > > > and exponent. Or as something else. S

Re: [Haskell-cafe] Need help with ghc static compile for cgi using mysql

2009-10-15 Thread Jason Dagit
On Thu, Oct 15, 2009 at 10:11 AM, John Van Enk wrote: > I've run Haskell stuff on VPS hosts like Linode or SliceHost. $20/month is > a lot better than $60. lambdabot is currently hosted on the lowest end linode. The biggest hurdle I hit was that gnu ld is a memory pig when GHC is compiled with

Re: [Haskell-cafe] Re: [Haskell-beginners] map question

2009-10-19 Thread Jason Dagit
On Mon, Oct 19, 2009 at 5:53 PM, Will Ness wrote: > Tom Tobin korpios.com> writes: > > > On Mon, Oct 19, 2009 at 5:34 PM, Will Ness yahoo.com> > wrote: > > > This syntax already exists. The '`' symbol is non-collating already, so > > > using it for symbol chars doesn't change anything (it's not

Re: [Haskell-cafe] Re: Simple FAST lazy functional primes

2009-11-02 Thread Jason Dagit
On Mon, Nov 2, 2009 at 1:59 PM, Will Ness wrote: > Will Ness yahoo.com> writes: > > > primes = 2: 3: sieve 0 primes' 5 > > primes' = tail primes > > sieve k (p:ps) x > > = [x | x <- [x,x+2..p*p-2], > > and [(x`rem`p)/=0 | p <- take k primes']] > >++ sieve

Re: [Haskell-cafe] Re: Simple FAST lazy functional primes

2009-11-02 Thread Jason Dagit
On Mon, Nov 2, 2009 at 2:40 PM, Will Ness wrote: > Jason Dagit codersbase.com> writes: > > > On Mon, Nov 2, 2009 at 1:59 PM, Will Ness yahoo.com> > wrote: > > Will Ness yahoo.com> writes: > > > > One _crucial_ tidbit I've left out: _type_signat

Re: [Haskell-cafe] Interactive chatbot

2009-11-04 Thread Jason Dagit
On Wed, Nov 4, 2009 at 2:21 PM, Torsten Otto wrote: > Hi! > > My students have the task to program an interactive chatbot. We have run > into a problem that I can't solve either: > > When we read the user's input through > > t <- getLine > it is not possible to delete typos before hitting enter

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Jason Dagit
On Thu, Nov 5, 2009 at 6:15 PM, brian wrote: > > On Nov 5, 2009, at 8:26 AM, Jason Dagit wrote: > > >> >> Haskell knows when I have a list of Doubles, you know, because it's >> strongly typed. >> >> Then it proceeds to box them. Huh ? >>

Re: [Haskell-cafe] faster compiling for ghc

2009-11-12 Thread Jason Dagit
On Thu, Nov 12, 2009 at 2:57 AM, Neil Mitchell wrote: > Hi, > > I'd really love a faster GHC! I spend hours every day waiting for GHC, > so any improvements would be most welcome. > Has anyone built a profiling enabled GHC to get data on where GHC spends time during compilation? > > I remember

Re: [Haskell-cafe] Optimization with Strings ?

2009-12-04 Thread Jason Dagit
On Thu, Dec 3, 2009 at 8:25 AM, John D. Earle wrote: > Haskell has a problem with its type system and is not rigorous. Haskell is > not a suitable language for proof assistants and so I would advise you to > stay clear of Haskell. Standard ML was engineered with the needs of proof > assistants in

Re: [Haskell-cafe] Type system speculation

2009-12-09 Thread Jason Dagit
On Wed, Dec 9, 2009 at 7:47 PM, wren ng thornton wrote: > Andrew Coppin wrote: > >> What we're really trying to do here is attach additional information to a >> value - information which exists only in the type checker's head, but has no >> effect on runtime behaviour (other than determining whet

Re: [Haskell-cafe] Re: Handles with their IOMode in their type

2009-12-09 Thread Jason Dagit
On Wed, Dec 9, 2009 at 6:00 PM, Brandon S. Allbery KF8NH < allb...@ece.cmu.edu> wrote: > On Dec 9, 2009, at 16:51 , Bas van Dijk wrote: > >> I will change the types to: >> >> stdin :: Handle ReadMode >> stdout :: Handle WriteMode >> stderr :: Handle WriteMode >> >> Or are there scenarios where peo

[Haskell-cafe] Re: [darcs-users] Iteratees, streams, and mmap

2009-12-12 Thread Jason Dagit
Hi Heinrich, On Sat, Dec 12, 2009 at 2:42 AM, Heinrich Apfelmus < apfel...@quantentunnel.de> wrote: > Jason Dagit wrote: > > My next experiment will be to find ways to express "take this operation > and > > apply it to a stream without letting the stream leak&

Re: [Haskell-cafe] Re: [darcs-users] Iteratees, streams, and mmap

2009-12-12 Thread Jason Dagit
On Sat, Dec 12, 2009 at 1:37 PM, Johann Höchtl wrote: > > > On Dec 12, 7:13 pm, Jason Dagit wrote: > > Hi Heinrich, > > > > On Sat, Dec 12, 2009 at 2:42 AM, Heinrich Apfelmus < > > > > > > > > apfel...@quantentunnel.de> wrote: > >

Re: [Haskell-cafe] Re: [darcs-users] Iteratees, streams, and mmap

2009-12-13 Thread Jason Dagit
On Sun, Dec 13, 2009 at 3:47 AM, Heinrich Apfelmus < apfel...@quantentunnel.de> wrote: > How about tracking the requirement of "bounded" in the type system? In > particular, I'm thinking of a type class > >class NFData a => Small a > > where the idea is that all types that can be stored in con

Re: [Haskell-cafe] Re: Allowing hyphens in identifiers

2009-12-18 Thread Jason Dagit
On Thu, Dec 17, 2009 at 6:58 PM, Richard O'Keefe wrote: > (Why do people call > baStudly syle "camel"? Is there somewhere in the world a > species of camel with three or four humps, like > XmlNodeSansChildren?) As near as I can tell (from googling) you're the one calling it "baStudlyCaps" :)

Re: [Haskell-cafe] ghc -e

2010-01-06 Thread Jason Dagit
On Wed, Jan 6, 2010 at 6:15 PM, Reid Barton wrote: > On Thu, Jan 07, 2010 at 10:23:35AM +1000, Tony Morris wrote: > > Can I import a module when using ghc -e? > > > > e.g. ghc -e "import Control.Monad; forM [[1,2,3]] reverse" > > One option is to create a file "imports.hs" which contains the text

Re: [Haskell-cafe] Parsers (Parsec and Iteratee-based Parsers)

2010-01-11 Thread Jason Dagit
2010/1/11 Günther Schmidt > Hi, > > are there any examples how to build parsers using the library in Oleg's > iteratee package? > > I've been using parsec for almost all my parsing needs, in fact it was > parsec that got me started with Haskell. > I think you should be in contact with John Lato.

Re: [Haskell-cafe] Could not find module `Text.Regex'

2010-01-29 Thread Jason Dagit
On Fri, Jan 29, 2010 at 1:09 AM, zaxis wrote: > > `cabal install regex-compat` fixes my problem. thanks! > For what it's worth, according to the documentation the "-compat" package is for easing a transition in the api (which has now been completed). You may want to "upgrade" to a different pa

Re: [Haskell-cafe] SimonPJ and Tim Harris explain STM - video

2006-11-23 Thread Jason Dagit
A comment on that video said: - BEGIN QUOTE  It seems to me that STM creates new problems with composability. You create two classes of code: atomic methods and non atomic methods. Nonatomic methods can easily call atomic ones – the compiler could even automatically inject the atomic

Re: [Haskell-cafe] Equivalent of if/then/else for IO Bool?

2006-11-23 Thread Jason Dagit
On 11/23/06, Dougal Stanton <[EMAIL PROTECTED]> wrote: Is there some sort of equivalent of the if/then/else construct for use in the IO monad? For instance the following can get quite tedious: > do bool <- doesFileExist filename >if bool >then sth >else sth' Is there a more compact

Re: [Haskell-cafe] Equivalent of if/then/else for IO Bool?

2006-11-24 Thread Jason Dagit
On 11/23/06, Conor McBride <[EMAIL PROTECTED]> wrote: *Grr> ifM (Just True) (Just 3) Nothing Nothing More care required! Thank you. Now that you point this out I recall that I've made this mistake in the past with (&&), I once wrote something like liftM2 (&&). I forget that the liftM* famil

Re: [Haskell-cafe] The Future of MissingH

2006-11-24 Thread Jason Dagit
On 11/24/06, John Goerzen <[EMAIL PROTECTED]> wrote: What else should be done to make this a valuable resource for Haskell programmers? And a showcase for what is possible with Haskell? I was going to try MissingH on win32 but when I did it refused to compile due to a dependency on, I think,

[Haskell-cafe] ANN: NeHe Tutorials in Haskell

2006-11-27 Thread Jason Dagit
Hello, I was recently reminded by http://haskell.org/haskellwiki/How_to_write_a_Haskell_program that you should announce your haskell projects! About a year ago I started converting the (somewhat) famous NeHe tutorials for OpenGL to HOpenGL. I have created a darcs repository for anyone interest

[Haskell-cafe] Command line utility that shrinks/simplifies functions applications ?

2006-12-01 Thread Jason Dagit
On 11/30/06, Pepe Iborra <[EMAIL PROTECTED]> wrote: On 30/11/2006, at 17:04, Spencer Janssen wrote: I believe you're talking about the `pl' plugin for lambdabot. Lambdabot has an offline mode, visit the homepage for the source: http://www.cse.unsw.edu.au/~dons/lambdabot.html There is a

Re: [Haskell-cafe] Generate 50 random coordinates

2006-12-01 Thread Jason Dagit
Hello, On 12/1/06, Huazhi (Hank) Gong <[EMAIL PROTECTED]> wrote: Hello,all My intention is to generate 50 random coordinates like (x,y). myrand :: Int myrand = randomRIO(1::Int, 100) When we look at the type of randomRIO we see: randomRIO :: forall a. (Random a) => (a, a) -> IO a You're gi

Re: [Haskell-cafe] using greencard to write COM in haskell

2006-12-04 Thread Jason Dagit
On 12/4/06, Anatoly Yakovenko <[EMAIL PROTECTED]> wrote: So is there a way to start haskell form C? Ideally i would like something thats as easy to use as a dll, that the end use wouldn't be aware that they are using a component written in haskell. The things described at this URL have worked

Re: [Haskell-cafe] Cabal licence files

2006-12-15 Thread Jason Dagit
On 12/14/06, Dougal Stanton <[EMAIL PROTECTED]> wrote: The cabal setup recognises a small set of licences which I don't think are well explained. I'm trying to put together a canonical list for setting up new projects. GPL: LGPL:

[Haskell-cafe] Re: [Haskell] Haskell alternatives: functional programming in rich IDEs

2006-12-15 Thread Jason Dagit
Moving this to Haskell-Cafe which seems more appropriate given my question. On 12/15/06, Bulat Ziganshin <[EMAIL PROTECTED]> wrote: Hello haskell, it was several times mentioned that Haskell doesn't provide rich environments for productive work, including lack of IDEs, bundled "real-world" libs

Re: [Haskell-cafe] Aim Of Haskell

2006-12-15 Thread Jason Dagit
On 12/15/06, Tomasz Zielonka <[EMAIL PROTECTED]> wrote: > The Haskell web server that Simon Peyton-Jones et al described in their > paper would be a great example. But where's the download? Let me stress this: HWS is an *exception*. It's the only Haskell related thing that I had trouble to find.

Re: [Haskell-cafe] Re[2]: [Haskell] Haskell alternatives: functional programming in rich IDEs

2006-12-15 Thread Jason Dagit
On 12/15/06, Bulat Ziganshin <[EMAIL PROTECTED]> wrote: Hello Martin, Friday, December 15, 2006, 3:51:24 PM, you wrote: >>1) F#, is Ocaml dialect integrated in .NET environment >>2) Clean, very Haskell-like language with a commercial IDE, GUI libs and so on >>3) Business Objects, integration of

Re: [Haskell-cafe] Haskell Side Effect

2006-12-20 Thread Jason Dagit
Am I the only one that doesn't get it? Jason On 12/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Bernie Pope writes: > I thought this email might be interesting for the Spanish speaking > part of the Haskell community, so I have written it in Spanish for them: > ("Since learning Haskell

Re: [Haskell-cafe] Grabbing list of functions from current module

2007-05-10 Thread Jason Dagit
On 4/9/07, Joel Reymont <[EMAIL PROTECTED]> wrote: Folks, Does anyone have code that can grab a list of functions named with a certain prefix from the current (or given) module? I want to find functions named, say, ast_* and produce a list of tuples like ("input1", ast_input1). I wrote some co

Re: [Haskell-cafe] global variables

2007-05-17 Thread Jason Dagit
On 5/17/07, Adrian Hey <[EMAIL PROTECTED]> wrote: Jules Bean wrote: >> BTW, this is the commonly the subject of flame wars on the Haskell >> mailing lists because there appear to be many who passionately believe >> and assert that so called "global variables" are (at best) unnecessary >> and (at

Re: [Haskell-cafe] Random idea

2007-05-20 Thread Jason Dagit
On 5/20/07, Andrew Coppin <[EMAIL PROTECTED]> wrote: Rodrigo Queiro wrote: > http://lambdabot.codersbase.com/ Wait, what the hell...? > 1 + 1 /usr/lib/ghc-6.4.2/package.conf: openFile: does not exist (No such file or directory) Sorry about that, I upgraded my ghc package without realizing i

[Haskell-cafe] Slower with ByteStrings?

2007-05-26 Thread Jason Dagit
Hello, We recently had a challenge as follows: Given a word, find all the words in the dictionary which can be made from the letters of that word. A letter can be used at most as many times as it appears in the input word. So, "letter" can only match words with 0, 1, or 2 t's in them. I opted

Re: [Haskell-cafe] Help with terminal IO

2007-05-29 Thread Jason Dagit
On 5/27/07, Ryan Ingram <[EMAIL PROTECTED]> wrote: I was hoping that hSetBuffering would turn off the line buffering for stdin, but it doesn't seem to work. module Main where import System.IO main :: IO () main = do hSetBuffering stdin NoBuffering hSetBuffering stdout NoBuffering

Re: [Haskell-cafe] Coding Standards (Coding Conventions)

2007-05-29 Thread Jason Dagit
On 5/28/07, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote: conrad: > On 28/05/07, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote: > >Our small little window manager, xmonad, also has a pretty strict style > >guide. > > where? Perhaps I need coffee, but I couldn't find this in the source > (xmona

Re: [Haskell-cafe] The C Equiv of != in Haskell miscommunication thread

2007-05-29 Thread Jason Dagit
On 5/28/07, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote: This thread should end, guys. It is inappropriate for the Haskell lists, and appears to have been a simple misunderstanding anyway. Thanks everyone. Please stay friendly! -- Don P.S. Have some cute code: Control.Monad.Fix.fix ((1

Re: [Haskell-cafe] New book: Real-World Haskell!

2007-05-29 Thread Jason Dagit
On 5/29/07, Doug Kirk <[EMAIL PROTECTED]> wrote: OTOH, I work for companies, and they really value their assets, especially software assets. So they *want* centralized stuff, so they can ensure they have consistent backups (in the U.S.A. there is a lot of regulation under Sarbanes-Oxley that requ

Re: [Haskell-cafe] OpenGL

2007-05-30 Thread Jason Dagit
On 5/30/07, Jon Harrop <[EMAIL PROTECTED]> wrote: I've found HOpenGL and the Debian package libghc6-opengl-dev. The former seems to be very out of date (last release 2003) but I can't find any demos for the latter. Where should I go to get started with OpenGL and Haskell? I started converting

Re: [Haskell-cafe] Netwire bouncing ball

2013-07-10 Thread Jason Dagit
On Wed, Jul 10, 2013 at 2:15 PM, Just wrote: > Hello, > > I'm trying to get a grasp of netwire by implementing a bouncing ball > simulation and I'm failing. > The ball starts from the ground with a given velocity and when hitting the > ground the wire inhibits successfully. Now I'm kinda stuck. I

Re: [Haskell-cafe] OS X ghci problem

2013-07-13 Thread Jason Dagit
On Sat, Jul 13, 2013 at 4:39 PM, Mark Lentczner wrote: > Bizarre - this just happened to me today, too. Anyone? Did you figure out a > work around? For the record, I'm trying to bring Euterpea up. After some digging, experimenting, asking around, and head scratching my best guesses are: * GHCi

Re: [Haskell-cafe] OS X ghci problem

2013-07-13 Thread Jason Dagit
On Sat, Jul 13, 2013 at 5:32 PM, Anthony Cowley wrote: > On Jul 13, 2013, at 8:04 PM, Jason Dagit wrote: > >> On Sat, Jul 13, 2013 at 4:39 PM, Mark Lentczner >> wrote: >>> Bizarre - this just happened to me today, too. Anyone? Did you figure out a >>> work a

Re: [Haskell-cafe] OS X ghci problem

2013-07-13 Thread Jason Dagit
On Sat, Jul 13, 2013 at 6:44 PM, Carter Schonwald wrote: > has anyone tried using ghci HEAD? If the problem is linker based... perhaps > ghci that uses the system Dylinker might resolve it? If someone gets brave and tries this I'd love to hear if it works. Although, that's too new for something w

Re: [Haskell-cafe] ordNub

2013-07-15 Thread Jason Dagit
On Sun, Jul 14, 2013 at 4:20 AM, Niklas Hambüchen wrote: > tldr: nub is abnormally slow, we shouldn't use it, but we do. > > > As you might know, Data.List.nub is O(n²). (*) > > As you might not know, almost *all* practical Haskell projects use it, > and that in places where an Ord instance is giv

Re: [Haskell-cafe] Why GHC is written in Happy and not a monadic parser library?

2013-08-02 Thread Jason Dagit
On Fri, Aug 2, 2013 at 5:49 PM, blackbox.dev.ml wrote: > Hi! > Is there any specific reason why GHC is written in a parser GENERATOR > (Happy) and not in MONADIC PARSER COMBINATOR (like parsec)? > > Is Happy faster / handles better errors / hase some great features or > anything else? One reason

Re: [Haskell-cafe] Why GHC is written in Happy and not a monadic parser library?

2013-08-03 Thread Jason Dagit
On Sat, Aug 3, 2013 at 3:36 AM, Malcolm Wallace wrote: > > On 3 Aug 2013, at 02:20, Jason Dagit wrote: > >>> Hi! >>> Is there any specific reason why GHC is written in a parser GENERATOR >>> (Happy) and not in MONADIC PARSER COMBINATOR (like parsec)? >

Re: [Haskell-cafe] Alternative name for return

2013-08-14 Thread Jason Dagit
On Wed, Aug 14, 2013 at 7:54 PM, Simon Peyton-Jones wrote: > | Indeed, I wished the 0-ary case would be more alike to the unary and > | binary case, cf. > | > | return f0 > | f1 <$> a1 > | f2 <$> a1 <*> a2 > | > | What is needed is a nice syntax for "idiom brackets". > > Indeed. I'

Re: [Haskell-cafe] definition of the term "combinator"

2013-08-23 Thread Jason Dagit
On Fri, Aug 23, 2013 at 9:09 PM, damodar kulkarni wrote: > Hello, > The word "combinator" is used several times in the Haskell community. e.g. > parser combinator, combinator library etc. > > Is it exactly the same term that is used in the "combinatory logic" ? > A combinator is a higher-order fun

Re: [Haskell-cafe] Poll & plea: State of GUI & graphics libraries in Haskell

2013-09-27 Thread Jason Dagit
On Thu, Sep 26, 2013 at 8:32 PM, Conal Elliott wrote: > I'm polling to see whether there are will and expertise to reboot graphics > and GUIs work in Haskell. I miss working on functional graphics and GUIs in > Haskell, as I've been blocked for several years (eight?) due to the absence > of low-l

Re: [Haskell-cafe] Richard Bird and the fast nub function

2013-09-29 Thread Jason Dagit
On Sun, Sep 29, 2013 at 1:40 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > > In Richard Bird's "Functional Pearls in Algorithm Design" there is chapter > 10 "Removing duplicates" which is about a fast and sorting variant of > 'nub'. After reading the introduction of the chapter

Re: [Haskell-cafe] Haskell Logo Macbook Decal

2013-10-01 Thread Jason Dagit
On Tue, Oct 1, 2013 at 3:50 PM, Kyle Hanson wrote: > I ordered mine! > > Does anyone know if there is any place where I could order pre-made > Haskell t-shirt that benefits haskell.org too? > I don't know where, but I just wanted to say thank you to both you and Ryan and everyone else who buys o

Re: [Haskell-cafe] Compiling arbitrary Haskell code

2013-10-11 Thread Jason Dagit
On Fri, Oct 11, 2013 at 1:30 PM, Christopher Done wrote: > Is there a definitive list of things in GHC that are unsafe to > _compile_ if I were to take an arbitrary module and compile it? > > E.g. off the top of my head, things that might be dangerous: > > * TemplateHaskell/QuasiQuotes -- obviousl

Re: [Haskell-cafe] Re: poll: how can we help you contribute to darcs?

2008-08-03 Thread Jason Dagit
I've been lurking on this thread, collecting the valuable feedback. Thanks all. On Sun, Aug 3, 2008 at 12:06 PM, Brandon S. Allbery KF8NH < [EMAIL PROTECTED]> wrote: > > On 2008 Aug 3, at 5:35, Andrew Coppin wrote: > > Well Darcs already does that. So... what's to develop? It's not like it's >>

[Haskell-cafe] instance deduction and phantom types

2008-08-07 Thread Jason Dagit
Hello, I recently had a problem where GHC couldn't deduce some type classes from my constraints. I would get error messages like: Could not deduce (Conflict (PatchInfoAnd p), Patchy (PatchInfoAnd p)) from the context (RepoPatch p) But, I had some instances like this

Re: [Haskell-cafe] instance deduction and phantom types

2008-08-07 Thread Jason Dagit
Thank you for the quick response. It's very helpful and makes perfect sense now. On Thu, Aug 7, 2008 at 7:58 PM, Ryan Ingram <[EMAIL PROTECTED]> wrote: > Also, you may find it helpful to add > > > {-# LANGUAGE KindSignatures #-} > > to the top of your program, and start annotating your class and

<    1   2   3   4   5   6   7   >