What about promote ?
On Tue, Aug 6, 2013 at 6:15 PM, Tom Ellis
tom-lists-haskell-cafe-2...@jaguarpaw.co.uk wrote:
On Tue, Aug 06, 2013 at 10:03:04AM +0200, J. Stutterheim wrote:
`putStrLn Hi` is not a pure value...
Why not?
___
Haskell-Cafe
Hi café.
I've come up with a little version of 'uniq' that should take into account
md5 sums of the file changes... In essence, this:
main :: IO ()
main = getContents
= mapM check . lines -- PROBLEM
= mapM_ (putStrLn . ( -- ++ )) . strip
check :: String - IO (String, ABCD)
check s =
Thanks a lot for that Adam.
Glad to hear I wasn't too far off the right track :-)
Regards,
- Lyndon
On Thu, Jul 4, 2013 at 5:34 PM, Adam Gundry adam.gun...@strath.ac.ukwrote:
Hi,
On 04/07/13 02:19, Lyndon Maydwell wrote:
I'm wracking my brain trying to figure out a simple, reasonably
Hi Café.
I'm wracking my brain trying to figure out a simple, reasonably general,
implementation for a category instance for pairs of categories.
So far I've looked at [1], which seems great, but doesn't use the built-in
category instance, and [2], which I'm just not sure about.
Ideally I'd
How can I join the group?
P.S. I've attached a simple image for the Gravatar if it looks okay.
On Tue, May 28, 2013 at 12:40 PM, Conrad Parker con...@metadecks.orgwrote:
On 28 May 2013 05:29, Alexander Solla alex.so...@gmail.com wrote:
As per recent discussions, I'm making a list of
Done :)
On Wed, May 29, 2013 at 12:22 PM, Conrad Parker con...@metadecks.orgwrote:
On 29 May 2013 08:54, Lyndon Maydwell maydw...@gmail.com wrote:
How can I join the group?
by asking any of the current members :) I've added you.
P.S. I've attached a simple image for the Gravatar
Don't underestimate how greatly people appreciate being saved a couple of
minutes!
On Mon, May 6, 2013 at 8:01 PM, Niklas Hambüchen m...@nh2.me wrote:
On 06/05/13 17:46, Tillmann Rendel wrote:
So what about this: Hackage could try to automatically collect and
display information about the
But what if the package is already perfect?
Jokes aside, I think that activity alone wouldn't be a good indicator.
On Mon, May 6, 2013 at 9:59 AM, Conrad Parker con...@metadecks.org wrote:
On 6 May 2013 09:42, Felipe Almeida Lessa felipe.le...@gmail.com wrote:
Just checking the repo
You could do:
runKleisli . mconcat . map Kleisli :: Monoid (Kleisli m a b) = [a - m b]
- a - m b
Would that work for you?
On Tue, Apr 16, 2013 at 8:35 PM, Christopher Howard
christopher.how...@frigidcode.com wrote:
So, I'm doing something like this
foldl (=) someA list :: Monad m = m a
Wow looks like this Monoid instance isn't included in Control.Monad... My
mistake.
On Tue, Apr 16, 2013 at 8:47 PM, Lyndon Maydwell maydw...@gmail.com wrote:
You could do:
runKleisli . mconcat . map Kleisli :: Monoid (Kleisli m a b) = [a - m b]
- a - m b
Would that work for you?
On Tue
Yep. I was backstabbed by ghci seemingly having no issue with my definition
when I asked for the type.
On Tue, Apr 16, 2013 at 9:49 PM, Tom Ellis
tom-lists-haskell-cafe-2...@jaguarpaw.co.uk wrote:
On Tue, Apr 16, 2013 at 01:53:19PM +0100, Oliver Charles wrote:
On 04/16/2013 01:47 PM, Lyndon
If I find my line is longer than 80 characters, I just shorten my
function and variable names!
It's perfectly idio(ma)tic!
On Mon, Oct 29, 2012 at 9:52 PM, Michael Orlitzky mich...@orlitzky.com wrote:
On 10/29/2012 07:50 AM, Rustom Mody wrote:
There was a recent discussion on the python list
with the maintainers thats
reproducible?
On Thu, Sep 27, 2012 at 3:49 AM, Lyndon Maydwell maydw...@gmail.com wrote:
I'm experiencing the same issues with compiled 64 bit working
correctly, but interpreted causing all sorts of issues with Scotty.
On Thu, Sep 27, 2012 at 3:45 PM, Christiaan
I'm experiencing the same issues with compiled 64 bit working
correctly, but interpreted causing all sorts of issues with Scotty.
On Thu, Sep 27, 2012 at 3:45 PM, Christiaan Baaij
christiaan.ba...@gmail.com wrote:
The behaviour seems to differ between versions of OS X.
A student has OS X 10.8
You will be warned about the top-level definitions not including a
type-signature if you use the -Wall flag. This isn't really a complete
solution to your gripes, but it does address the change in behaviour
that you saw when adding/removing the commented code, and would draw
your attention to the
I'd guess that type-inference is allowing rgbliste to use Integers
when farbliste is commented out, but restricting it to 16 Bit types
when it is uncommented. I don't have the GTK module installed on this
machine, but try adding some type annotations to see if this is the
case.
The maxBound of
Hi all.
What's the best indentation-aware parser at the moment?
I see three when I look in cabal:
lyndon@pugno:~ » cabal list indent
* IndentParser
Synopsis: Combinators for parsing indentation based syntatic structures
Default available version: 0.2.1
Installed versions: [ Not
for?
Doaitse
Op 4 mei 2012 om 09:02 heeft Lyndon Maydwell maydw...@gmail.com het
volgende geschreven:
Hi all.
What's the best indentation-aware parser at the moment?
I see three when I look in cabal:
lyndon@pugno:~ » cabal list indent
* IndentParser
Synopsis: Combinators
Hi Café.
I'm pondering over an old chestnut that I'd forgotten about until recently.
I'd like to be able to express schemas for general recursive datatypes
(excluding functions and possibly encoding bounds) and have an
interactive constructor for that datatype generated automatically.
Originally
Nice tip!
On Mon, Apr 16, 2012 at 4:42 PM, Daniël de Kok m...@danieldk.eu wrote:
On Apr 16, 2012, at 5:28 AM, Lyndon Maydwell wrote:
I've found that I had to make several modifications to the
bootstrap.sh and cabal-install.cabal files in order to get this to
work. I am wondering how
Hi Café.
I'm building GHC from package ghc-7.4.1-src.tar.bz2 as the binary
download was throwing segfaults for me (and apparently a few others).
This has worked well and my issues with GHC and GHCi are now resolved.
However I have needed to build cabal-install. This can't be done using
Could template-Haskell be used somehow?
- Lyndon Maydwell
On Mar 10, 2012 4:50 AM, Clark Gaebel cgae...@csclub.uwaterloo.ca wrote:
In Haskell, what's the canonical way of declaring a top-level array
(Data.Vector of a huge list of doubles, in my case)? Performance is
key in my case
.
Michael
On Tue, Feb 21, 2012 at 9:57 AM, Lyndon Maydwell maydw...@gmail.com wrote:
Hi Michael,
The behaviour of my original code has now changed to output nothing
with no errors. I'm not sure of the significance of this as my code
was incorrect, however, using the code you demonstrated gives
Hi Michael, Café.
I'm writing some code using the conduit library and am encountering
the following error output (while the program appears to function
correctly) when using Data.Conduit.Lazy.
The error given is:
profile_simple_test_data: Control.Monad.Trans.Resource.stateCleanup: There is
a
at 3:30 PM, Michael Snoyman mich...@snoyman.com wrote:
On Tue, Feb 21, 2012 at 7:40 AM, Michael Snoyman mich...@snoyman.com wrote:
On Tue, Feb 21, 2012 at 5:46 AM, Lyndon Maydwell maydw...@gmail.com wrote:
Hi Michael, Café.
I'm writing some code using the conduit library and am encountering
Hi Café.
Has anyone read the news at http://kennethreitz.com/xcode-gcc-and-homebrew.html?
It looks like Apple is going to support a minimalist command-line
based toolchain for Xcode called Command Line Tools for Xcode based
on the OSX-GCC-Installer project.
Would Haskell support this rather
I wonder how the arrival of an anonymous anecdote on IRC was the
smoking gun needed to justify calling out the Haskell community on its
cognitive dissonance. Surely you would need some statistical evidence,
a public display from a very prominent member, or some officially
endorsed stance to
I would make the 'type' symbol a single character ala Agda. For example,
a : Int
If your users are writing a lot of types, make it easy!
On Dec 22, 2011 10:42 AM, Alexander Solla alex.so...@gmail.com wrote:
On Tue, Dec 20, 2011 at 10:30 PM, Gregory Crosswhite
gcrosswh...@gmail.com wrote:
Could Int be overflowing?
On Tue, Nov 8, 2011 at 7:21 PM, mukesh tiwari
mukeshtiwari.ii...@gmail.com wrote:
Hello all
Being a Haskell enthusiastic , first I tried to solve this problem in
Haskell but it running for almost 10 minutes on my computer but not getting
the answer. A similar C++
Thank you for the correction Brent.
The Diagrams package is a wonderful project.
- Lyndon Maydwell
On Oct 13, 2011 2:03 AM, Brent Yorgey byor...@seas.upenn.edu wrote:
On Wed, Oct 12, 2011 at 12:57:45PM +0800, Lyndon Maydwell wrote:
The closest I've seen to this proces from Haskell seems
Hi Cafe.
I came across an interesting page about interactive abstraction called
Up and Down the Latter of Abstraction [1] while browsing
hacker-news.
Under the appendix Tools Implementation Bret Victor ponders:
Perhaps language theorists will stop messing around with arrows and
dependent
Pattern matching will warn you if you neglect to consider the empty list.
On Fri, Sep 16, 2011 at 10:24 AM, Michael Litchard mich...@schmong.org wrote:
Someone commented on StackOverflow that pattern matching the first
element of a list was preferable to head. This makes sense
intuitively.
The problem is that you need to convert (length xs) to a Num, then
return a Fractional.
On Fri, Jul 1, 2011 at 2:07 PM, Nathan Howell nathan.d.how...@gmail.com wrote:
(/) operates on a Fractional instance... but length returns an Int, which is
not a Fractional.
You can convert the Int to a
It's probably obvious, but is there a reason why the links in this
email are being minimised?
On Thu, Jun 23, 2011 at 11:08 AM, Daniel Santa Cruz dstc...@gmail.com wrote:
Welcome to issue 187 of the HWN, a newsletter covering developments in
the Haskell community. This release covers the
Your errors branch has the type
writeFile parse-errors.txt (show errors) :: IO ()
This means that your otherwise branch should have the same type.
You can use the return function that has the type
return :: Monad m = a - m a
specialised to m = IO
in conjunction with the value
() :: ()
It might not be a perfect fit, but I've found the Diagrams useful for
plotting these kind of things recently.
On Sun, Jun 12, 2011 at 11:08 PM, Eric Rasmussen
ericrasmus...@gmail.com wrote:
There is a program written in Haskell called Timeplot that does this:
.
John
From: Lyndon Maydwell maydw...@gmail.com
(missed including cafe)
f :: [Modification] - Maybe [Modification]
and
f _ = Just $ f ...
are incompatible
I managed to get the behaviour I'm after with the use of Either, but
this really is messy:
-- Sets of changes
o (Modifier
on the resulting Image.
2) Implement a general matrix transform for Diagrams and rewrite
everything in terms of that. This would be useful for shear transforms
anyway, which I believe are currently inexpressible in Diagrams.
John Lato
On Tue, Jun 7, 2011 at 10:12 AM, Lyndon Maydwell maydw...@gmail.com
I would be fantastic if XCode wasn't a dependency. As well as the
inconvenience it also weighs in at around 5G (IIRC) of space which is
still somewhat significant.
Not to detract at all from the work of the wonderful GHC and Haskell
Platform contributors in any way. For me it would just make it
I'm writing an optimisation routine using Uniplate. Unfortunately, a
sub-function I'm writing is getting caught in an infinite loop because
it doesn't return Nothing when there are no optimisations left.
I'd like a way to move the last Just into f, but this makes recursion
very messy. I was
uzytkown...@gmail.com wrote:
On Mon, 2011-06-06 at 23:38 +0800, Lyndon Maydwell wrote:
I'm writing an optimisation routine using Uniplate. Unfortunately, a
sub-function I'm writing is getting caught in an infinite loop because
it doesn't return Nothing when there are no optimisations left.
I'd
-07 at 04:09 +0800, Lyndon Maydwell wrote:
(missed including cafe)
f :: [Modification] - Maybe [Modification]
and
f _ = Just $ f ...
are incompatible
My bad:
f ... = let cs' = (Rotate (x+x') : fromMaybe cs (f cs))
in fromMaybe cs (f cs)
Or refactoring it:
g l = fromMaybe l (f
I think this is because mconcat expects a list.
On Tue, May 31, 2011 at 3:31 PM, John Ky newho...@gmail.com wrote:
Thanks Malcom.
I suspected that much, so I added it:
data Stream m a
= Chunks (m a)
| EOF
deriving (Show, Eq)
instance (Monad m, MonadPlus m, Monoid (m a)) = Monoid (Stream m
it:
There is fold :: (Foldable t, Monoid m) = t m - m in Data.Foldable, but it
would add another Foldable constraint.
You search a function like:
concatMPlus :: (MonadPlus m, Monoid a) = m a - a
but this cannot exist ;) (m a - m a would, but not m a - a)
2011/5/31 Lyndon Maydwell maydw
Because they are more general functions that work on all monads rather
than just lists.
This allows Stream to be defined more flexibly.
On Mon, May 30, 2011 at 9:01 PM, John Ky newho...@gmail.com wrote:
Hi all,
I'm trying to learn about enumerators by reading this paper and came across
some
Hoogle is very useful for the kinds of questions where you can
estimate a likely type:
http://www.haskell.org/hoogle/?hoogle=Integral+a+%3D%3E+a+-%3E+a+-%3E+%28a%2Ca%29
On Sat, May 7, 2011 at 12:50 AM, Chris Smith cdsm...@gmail.com wrote:
Sure... see quotRem in the prelude.
On May 6, 2011
If you're looking for efficiency, I believe you can actually do #1 in
constant time:
On Sat, May 7, 2011 at 7:31 AM, cas...@istar.ca wrote:
-- Instead of this
-- sumMultiples3or5 s = sum [x | x - [3..s-1], x `mod` 3 == 0 || x `mod` 5
== 0]
-- Isn't this faster
sumMultiples3or5 s = sum
I get this too.
I've heard that it is resolved in 7.0.3 but I can't recall where.
(System Version: Mac OS X 10.6.7 (10J869), The Glorious Glasgow
Haskell Compilation System, version 7.0.2)
On Sat, Apr 16, 2011 at 10:47 AM, Andrew Pennebaker
andrew.penneba...@gmail.com wrote:
GHC 7 compiles
Agda's concept of holes seems perfect for this. Does Haskell have
anything similar?
On Fri, Apr 8, 2011 at 9:50 PM, Kazu Yamamoto k...@iij.ad.jp wrote:
I made a mistake. Use M-t instead of C-cC-t.
Currently what I do is declare a signature for helper, and then if it
gets a type error try to
Hi all.
I'm having some issues setting up cabal on EC2.
I've installed ghc 7.0.2, however, the bootstrap.sh script for
cabal-install is complaining about missing dependencies:
Linking Setup ...
Configuring Cabal-1.8.0.2...
Setup: At least the following dependencies are missing:
base =4 3
daniel.is.fisc...@googlemail.com wrote:
On Saturday 02 April 2011 11:10:42, Lyndon Maydwell wrote:
Hi all.
I'm having some issues setting up cabal on EC2.
I've installed ghc 7.0.2, however, the bootstrap.sh script for
cabal-install is complaining about missing dependencies:
Linking Setup
Many thanks to the Cabal devs :-)
On Sat, Apr 2, 2011 at 7:12 PM, Daniel Fischer
daniel.is.fisc...@googlemail.com wrote:
On Saturday 02 April 2011 11:51:03, Lyndon Maydwell wrote:
The version of cabal-install on this page seems to be out of date:
http://www.haskell.org/cabal/download.html
So
Should that be inner :: s?
data Shape = forall s. (Shapeful s)
= Shape { sx, sy :: Double,
inner :: a }
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Does anyone have any Binaries that are built to run on EC2?
That would be super!
On Tue, Feb 2, 2010 at 1:11 AM, Jason Dusek jason.du...@gmail.com wrote:
2010/01/31 Marc Weber marco-owe...@gmx.de:
If all you want is standard debian or such it does'nt matter.
However I tried installing NixOS
Will methods explained here work for boolean expressions?
The convenience of defining using specialised datatypes for
serialising numeric operations comes from Num being a typeclass. This
is not the case for Bool:
Prelude :info Num
class (Eq a, Show a) = Num a where
(+) :: a - a - a
... --
OpenGL + GLUT has always been very reliable for me.
On Wed, Feb 16, 2011 at 5:11 PM, Heinrich Apfelmus
apfel...@quantentunnel.de wrote:
Chris Smith wrote:
Mihai Maruseac wrote:
Right now, I am unsure on what is best to use. Can someone give me any
hints on which is the most kept-to-date and
That's true, but I've not had any luck with any other GUI libraries :(
On Wed, Feb 16, 2011 at 9:35 PM, Felipe Almeida Lessa
felipe.le...@gmail.com wrote:
On Wed, Feb 16, 2011 at 11:26 AM, Lyndon Maydwell maydw...@gmail.com wrote:
OpenGL + GLUT has always been very reliable for me.
I don't
Does the Python implementation operate on Strings, or all lists?
I think this could be quite important as many split implementations
take regular expressions as arguments. This could be quite challenging
for general lists.
That said, I would like to see some of these features in the split
Wow.
I've been working almost exclusively with GLUT because it seems to be
the only multi-platform graphics toolkit that works for me. This looks
great! It certainly seems to take the pain out of texture-loading
which always drives me up the wall.
The examples seem to be loading OpenGL in order
I've never used darcsden before. I take it your username is simon?
On Mon, Feb 14, 2011 at 5:43 AM, Simon Michael si...@joyful.com wrote:
Would it be worth re-exporting a type-aliased GLdouble to completely
hide the implementation?
PS, and now I understand more clearly - yes, you're quite
I've always had issues with GLUT under ghci. If GHC 7 fixes this it
will make me happy :)
On Sun, Nov 21, 2010 at 7:54 AM, Luke Palmer lrpal...@gmail.com wrote:
On Sat, Nov 20, 2010 at 4:46 PM, Conal Elliott co...@conal.net wrote:
I'm trying to find some way to do interactive, OpenGL-based
This looks great!
On Fri, Sep 3, 2010 at 4:59 PM, Christian Eltges elt...@googlemail.com wrote:
Hello,
I was wondering why the File-Icon installed by GHC with the lambda for
.hs files hasn't changed to the new
bind+lambda icon used on haskel.org.
Is this because it should be the same as the
ghc-pkg check doesn't list any broken dependencies.
On Tue, Aug 31, 2010 at 9:27 AM, Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com wrote:
On 31 August 2010 03:18, Lyndon Maydwell maydw...@gmail.com wrote:
Thanks!
This makes perfect sense, but as I just discovered using ghci -v
Yep. Definitely the same user.
On Tue, Aug 31, 2010 at 7:35 PM, Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com wrote:
On 31 August 2010 20:38, Lyndon Maydwell maydw...@gmail.com wrote:
ghc-pkg check doesn't list any broken dependencies.
You sure this is with the same user? ghci is unlikely
31.08.2010 um 15:57 schrieb Lyndon Maydwell:
Yep. Definitely the same user.
On Tue, Aug 31, 2010 at 7:35 PM, Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com wrote:
On 31 August 2010 20:38, Lyndon Maydwell maydw...@gmail.com wrote:
ghc-pkg check doesn't list any broken dependencies.
You sure
$HOME/.cabal/bin
On Wed, Sep 1, 2010 at 10:55 AM, Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com wrote:
Do you have ~/.cabal/bin or $HOME/.cabal/bin ? The latter is
preferable as some issues arise with the former...
On 1 September 2010 03:29, Lyndon Maydwell maydw...@gmail.com wrote:
Yep
I'm just trying these examples, and I can't figure out how to import
quickcheck2 rather than quickcheck1. I've looked around but I can't
seem to find any information on this. How do I do it?
Thanks!
On Mon, Aug 30, 2010 at 11:56 PM, John Millikin jmilli...@gmail.com wrote:
Define a custom
'
This should make QuickCheck 2 the default in GHCI. If it doesn't, you
may need to specify the version:
ghci -package QuickCheck-2.2
For Cabal-packaged libraries/applications, simply update your version
requirements.
On Mon, Aug 30, 2010 at 09:06, Lyndon Maydwell maydw...@gmail.com wrote:
I'm
I vaguely recall that there is a way to avoid this if you don't import
any terminal functions or something similar. I don't remember the
specifics though.
Sorry I couldn't be of more help!
On Fri, Aug 13, 2010 at 4:18 PM, Eitan Goldshtrom
thesource...@gmail.com wrote:
Hi. I'm working in
Seconded.
I've started using the Haskell Platform mainly because the ports
version is out of date.
Unfortunately it keeps getting pulled in as a dependency of something
even though I'm not using it.
On Wed, Aug 11, 2010 at 10:49 PM, Ozgur Akgun ozgurak...@gmail.com wrote:
Dear Cafe,
I wonder
Hi Cafe.
I have written some QuickCheck properties in my source and am using
these for testing, however, when I compile my program I get warned
about unused imports:
Warning: Module `Test.QuickCheck' is imported, but nothing from it is used
Is there a way to suppress these warnings for a
I'm using qualified properties with (import Test.QuickCheck ((==)))
so that may not be possible.
On Wed, Aug 11, 2010 at 4:23 AM, Christopher Done
chrisd...@googlemail.com wrote:
On 10 August 2010 22:22, Lyndon Maydwell maydw...@gmail.com wrote:
Hi Cafe.
I have written some QuickCheck
Is there a way to just ignore the warnings for QuickCheck?
On Wed, Aug 11, 2010 at 4:32 AM, Christopher Done
chrisd...@googlemail.com wrote:
On 10 August 2010 22:25, Lyndon Maydwell maydw...@gmail.com wrote:
On Wed, Aug 11, 2010 at 4:23 AM, Christopher Done
chrisd...@googlemail.com wrote
Are you using a recent version of GHC?
Groetjes,
Martijn.
On 8/10/10 22:22, Lyndon Maydwell wrote:
Hi Cafe.
I have written some QuickCheck properties in my source and am using
these for testing, however, when I compile my program I get warned
about unused imports:
Warning: Module
Sassy?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
I thought it was pure as, conceptually, readFile isn't 'run' rather it
constructs a pure function that accepts a unique world state as a
parameter. This might be totally unrealistic, but this is how I see IO
functions remaining pure. Is this a good mental model?
In terms of what a function
That's true I suppose, although since there are no implicit parameters
in haskell, it really has to be a DSL in implementation, rather than
just theory right?
On Mon, Aug 2, 2010 at 12:51 PM, Ivan Miljenovic
ivan.miljeno...@gmail.com wrote:
On 2 August 2010 14:47, Lyndon Maydwell maydw
You cannot break out of a monad if all you have available to use are
the monad typeclass functions, however there is nothing preventing an
instance from being created that allows escape. Many of these escape
methods come in the form of runX functions, but you can use
constructors to break out with
I find it useful to have a seed argument to nearly all random
functions rather than using ones with an IO signature. This way you
can speed up your program quite a bit and also make testing much
easier. I think that MonadRandom does this automatically too.
I made (presumably) inefficient huffman algorithm not too long ago:
http://www.hpaste.org/fastcgi/hpaste.fcgi/view?id=26484#a26484
I guess it doesn't normally need to be terribly efficient as the
result can be stored in a map of some sort.
On Wed, Jun 23, 2010 at 10:41 PM, John Lato
I don't think I can be of much help with regards to the questions, but
would you be able to post a link to the SPJ lecture?
Thanks :-)
On Tue, Jun 15, 2010 at 4:08 PM, Amiruddin Nagri amir.na...@gmail.com wrote:
My current project is about making an accounting engine that handles all
the
This sounds fantastic. Now I wish I had started learning haskell a few
years earlier.
As a side note, how is this project getting around the language
restrictions apple put in the developer license agreement?
--- [http://daringfireball.net/2010/04/iphone_agreement_bans_flash_compiler]
In the new
How would enforcing a 'real names' policy affect a contributor like
_why (http://en.wikipedia.org/wiki/Why_the_lucky_stiff)? I assume they
would not join the community.
I get the feeling that this discussion is somehow linked to haskell's
type-system, but have no idea why...
I hardly think you can say that _why had a negative impact on the ruby
community...
On Tue, Apr 6, 2010 at 9:53 AM, Christopher Done
chrisd...@googlemail.com wrote:
On 6 April 2010 01:52, Ivan Miljenovic ivan.miljeno...@gmail.com wrote:
On 6 April 2010 10:48, Christopher Done
Reminds me of To Dissect a Mockingbird [http://dkeenan.com/Lambda/].
On Tue, Mar 23, 2010 at 7:12 AM, Ivan Miljenovic
ivan.miljeno...@gmail.com wrote:
On 23 March 2010 10:02, Dupont Corentin corentin.dup...@gmail.com wrote:
I’m relatively new to Haskell.
Welcome!
I’m wondering if it exist a
You could probably also use a typeclass for pointy things rather than
a data type, this would then require you to use existential
quantification to construct a hetrogenous list.
For example:
Class Point where
getCartesian :: ...
getPolar :: ...
data Shape = Point p = ... | Polygon [p]
Well you need to define a new datatype to make a hertrogenous list, so
I don't think there's any real way you can get around people doing
that...
On Thu, Mar 18, 2010 at 1:27 PM, Darrin Chandler
dwchand...@stilyagin.com wrote:
On Thu, Mar 18, 2010 at 01:06:25PM +0800, Lyndon Maydwell wrote:
You
Hi Cafe.
I've made a basic game of life implementation with Haskell and OpenGL:
https://github.com/sordina/Life/
The basic premise is to generate a random snapshot, then iterate the
successor function on it to create an infinite list of snapshots, then
output them using OpenGL. I haven't really
life games now that I think of it.
On Tue, Feb 2, 2010 at 11:48 PM, Serguey Zefirov sergu...@gmail.com wrote:
2010/2/2 Lyndon Maydwell maydw...@gmail.com:
Hi Cafe.
I've made a basic game of life implementation with Haskell and OpenGL:
https://github.com/sordina/Life/
I'm intending to improve
I'm avoiding hard-coding bools anywhere as I intend to allow
fuzzy-representations at some point.
On Wed, Feb 3, 2010 at 12:10 AM, Serguey Zefirov sergu...@gmail.com wrote:
2010/2/2 Lyndon Maydwell maydw...@gmail.com:
I chose the array mainly for the fast lookup time compared to lists,
are you
Thanks for the replies.
I have heard of Hash Life, but I thought I'd try a more naive approach
first, build up some type-classes, then create some more interesting
implementations (although I think I'd struggle with implementing Hash
Life in haskell at this point).
What is the meaning of fuzzy
It might be worth looking at something like a curses library.
On Mon, Feb 1, 2010 at 4:45 PM, Mark Spezzano
mark.spezz...@chariot.net.au wrote:
I've tried this example and it just lets me type in anything in CAPITALS,
which is nice, but Delete key doesn't delete and the arrow keys
, 2010 at 4:58 PM, Christian Maeder
christian.mae...@dfki.de wrote:
Lyndon Maydwell schrieb:
For example, when I cabal install -v storable-complex I get the following:
/usr/bin/ghc -package-name storable-complex-0.2.1 --make
-hide-all-packages -i -idist/build -i. -idist/build/autogen
-Idist
Hi Cafe!
That's a capital i for anyone with font issues.
I posted this question to beginners a while ago, but received no
meaningful response so I'm trying cafe instead :-)
Most packages I try to install off Hackage with cabal are giving me
the error ghc: unrecognised flags: -I.
For example,
Aren't symbols made redundant by algebraic data types?
On Tue, Dec 8, 2009 at 4:48 PM, Michael Vanier mvanie...@gmail.com wrote:
jean-christophe mincke wrote:
Hello,
Has there already been attempts to introduce lisp like symbols in haskell?
Thank you
Regards
J-C
J-C,
Do you mean
at 4:52 PM, drostin77 ml.nwgr...@gmail.com wrote:
I take 'Hood. Er... any responses to my questions?
Ketil Malde-5 wrote:
Lyndon Maydwell maydw...@gmail.com writes:
On Mon, Dec 7, 2009 at 2:43 PM, Colin Adams
colinpaulad...@googlemail.com wrote:
2009/12/7 drostin77 ml.nwgr...@gmail.com
'Hood?
On Mon, Dec 7, 2009 at 2:43 PM, Colin Adams
colinpaulad...@googlemail.com wrote:
2009/12/7 drostin77 ml.nwgr...@gmail.com:
Hello Hopefully Helpful Haskell Community!
(I really wanted that to be alliteration... couldn't come up with an h word
for community)
House?
You can define the methods with the same names in different modules,
then when you are importing them into the same module for use, use a
qualified import.
import qualified Dog
import qualified Tree
This will allow you to use exactly the syntax you described.
Dog.bark
Tree.bark
Plus if you
Exception handling code should generally be assumed to work, so if
something goes wrong there you would normally like to know about it.
Also, there is nothing preventing you from wrapping the rescue code in
further exception handling, however, if the initial error were raised
upon encountering a
src/Quaternion.hs:22:27
This would probably be the place to start.
On Mon, Sep 28, 2009 at 7:28 PM, Felipe Lessa felipe.le...@gmail.com wrote:
On Mon, Sep 28, 2009 at 01:57:03PM +0300, selahaddin gerdan wrote:
Sorry I'm just learning haskell, so I don't get your suggestion. Could you
explain
1 - 100 of 105 matches
Mail list logo