[Haskell-cafe] Going to speak about Haskell at Flock to Fedora

2013-06-27 Thread Garrett Mitchener
the language, touch a few interesting packages, and show how to use GHC on Fedora. If anyone from the Haskell community is going to Flock and has requests or suggestions for what I should talk about, post a reply! -- Garrett Mitchener, associate professor of mathematics, College of Charleston

[Haskell] trouble with the random number generator

2010-04-08 Thread Garrett Mitchener
, if I'm right, this bug affects GHC and Hugs. But this code has surely been around long enough that someone would have found this already? But there's not a bug in hackage's trac system. Help! -- Garrett Mitchener ___ Haskell mailing list Haskell

Re: [Haskell] Generic combination of generic types

2007-08-24 Thread Garrett Mitchener
I'm not familiar with modal logic, but if modalities stack, you might be able to do something like this. -- Garrett Mitchener {-# OPTIONS_GHC -fglasgow-exts #-} module Test where data L a = F | T | Atom Int | Neg (L a) | And (L a) (L a) | Or (L a) (L a) | M (L

Re: [Haskell] how to 'accumulate' values efficiently (time and space) ?

2006-05-08 Thread Garrett Mitchener
I run into the problem with test1 all the time: It's accumulating partially evaluated expressions like this: 1+1+1+1+1+1+... and filling up memory. Try foldl' instead, and look here: http://en.wikibooks.org/wiki/Programming:Haskell_List_Processing Also have a look at this past discussion:

Re: [Haskell] What's up with this Haskell runtime error message:

2006-04-06 Thread Garrett Mitchener
I came up with a system of coloring -- you'll have to view this message as html to see it. You start with the input parameters -- those are green. Anything defined in terms of green is blue. Anything defined in terms of green blue is purple. Anything defined in terms of green, blue, and purple is

Re: [Haskell] What's up with this Haskell runtime error message:

2006-04-05 Thread Garrett Mitchener
:ones which is perfectly okay. The loop in the first example happens because it starts to evaluate x, and determines that it has to know x to do the evaluation, but the evalutation of x is already under way. -- Garrett Mitchener ___ Haskell mailing list