score [s] [g] =
if valid 4 g
then (s1 ++ s2 ++ s3 ++ s4)
else Bad Guess
where
s1 = Golds
s2 = show (gold s g)
s3 = , Silvers
s4 = show (silver s g)
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell
: no parse
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
,
Henk-Jan van Tuyl
So then we lived up to Peyton-Jones' Haskell slogan: avoid success at all costs.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
.
--
Sebastian Sylvan
+1
This unpredictability has bit me a few times when using LINQ (which is
awesome and has lazy evaluation) with C#.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/12/9 Maciej Piechotka uzytkown...@gmail.com:
On Tue, 2009-12-08 at 10:56 +0100, Deniz Dogan wrote:
Has there been any serious suggestion or attempt to change the syntax
of Haskell to allow hyphens in identifiers, much like in Lisp
languages? E.g. hello-world would be a valid function name
...]
Here is such a preprocessor. This is meant for people to try out.
I don't claim that it's perfect, it's just a quick hack.
Is there any flag I can pass to e.g. GHC to make it use the
preprocessor automagically or do I write my own little hack to apply
the preprocessor?
--
Deniz Dogan
Has there been any serious suggestion or attempt to change the syntax
of Haskell to allow hyphens in identifiers, much like in Lisp
languages? E.g. hello-world would be a valid function name.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe
2009/12/8 Jon Fairbairn jon.fairba...@cl.cam.ac.uk:
Deniz Dogan deniz.a.m.do...@gmail.com writes:
Has there been any serious suggestion or attempt to change the syntax
of Haskell to allow hyphens in identifiers, much like in Lisp
languages? E.g. hello-world would be a valid function name.
I
work for me.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/12/7 Tom Tobin korp...@korpios.com:
On Mon, Dec 7, 2009 at 11:25 AM, Deniz Dogan deniz.a.m.do...@gmail.com
wrote:
2009/12/7 Don Stewart d...@galois.com:
The Haskell Web News is a monthly summary of the hottest news about the
Haskell programming language, as found in our online
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Could someone please do something about the horrible syntax
highlighting for strings in the Wikipedia article? Black on dark
green, really?
--
Deniz Dogan
@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Not what you were looking for, but org-mode in Emacs is great for
organizing stuff.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
:
http://www.haskell.org/mailman/listinfo/xmonad
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
/mailman/listinfo/haskell-cafe
Are you sure you want to license this as BSD?
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
be fine.
What point are you trying to make by distinguishing JSON from
JavaScript? JSON is a subset of JavaScript, they share the same type
system. Null can be only one value. This doesn't make sense to me,
since as you say null is not a type, but a value.
--
Deniz Dogan
2009/11/8 Matthew Gruen wikigraceno...@gmail.com:
On Sun, Nov 8, 2009 at 6:21 AM, Deniz Dogan deniz.a.m.do...@gmail.com
wrote:
What point are you trying to make by distinguishing JSON from
JavaScript? JSON is a subset of JavaScript, they share the same type
system. Null can be only one value
, not other software developers.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/11/5 Andrew Coppin andrewcop...@btinternet.com:
Matus Tejiscak wrote:
zygohistomorphic prepromorphisms
Please tell me this isn't a real technical term. o_O
http://www.haskell.org/haskellwiki/Zygohistomorphic_prepromorphisms
Still can't tell if it's a joke or not...
--
Deniz Dogan
2009/11/6 Erik de Castro Lopo mle...@mega-nerd.com:
Stefan Holdermans wrote:
http://people.cs.uu.nl/stefan/pubs/hage08heap.html
Getting connection refused on that.
Try this one, from Google's cache:
http://preview.tinyurl.com/ydjuw2j
--
Deniz Dogan
2009/11/6 Deniz Dogan deniz.a.m.do...@gmail.com:
2009/11/6 Erik de Castro Lopo mle...@mega-nerd.com:
Stefan Holdermans wrote:
http://people.cs.uu.nl/stefan/pubs/hage08heap.html
Getting connection refused on that.
Try this one, from Google's cache:
http://preview.tinyurl.com/ydjuw2j
... Is ⊥ really valid Haskell?
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
://www.mail-archive.com/haskell-cafe@haskell.org/msg62848.html
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
/mailman/listinfo/haskell-cafe
You guys sure have been good at hiding skeleton.el... The impression
I've gotten from a couple of years in #emacs is that yasnippet is the
way to go. I'll translate my own snippets to skeleton a.s.a.p. :P
--
Deniz Dogan
what's the deal with Clean? Why is it preferable to Haskell? Why is it not?
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Second Tactic)
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/10/26 zaxis z_a...@163.com:
xmonad is great WM i have ever seen. I have used it for a long time.
However, i donot know whether or not it is a *good* combination to use
xmonad and lxpanel together insead of dzen .
Take a look at XMonad.Prompt from xmonad-contrib, it's sick.
--
Deniz
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Great news!
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hackage link: http://hackage.haskell.org/package/mecha/
2009/10/22 John Van Enk vane...@gmail.com:
Is this on hackage yet, or should we just consult the mecha link on your
home page?
On Wed, Oct 21, 2009 at 11:42 PM, Tom Hawkins tomahawk...@gmail.com wrote:
A few months ago, I started
.
D
The explanations I heard were:
* The Galois guys got their math wrong and folded monk's disk into R^0 space.
* Might be concerned with CERN.
* lambdabot hacked Hackage and uses it to plot her plans for
world-domination, faster.
All from the same person, incidentally!
--
Deniz Dogan
This should come as no surprise, but Emacs can do this as well.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
in lambda calculus, technically, take exactly
one argument?
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/10/7 michael rice nowg...@yahoo.com
Actually I used it to fake the Pascal ord(x) function:
ord = fromEnum
Problem?
Michael
If the monomorphism restriction applies, the compiler (assuming you're
using GHC) will tell you about it.
--
Deniz Dogan
)
Probable fix: give these definition(s) an explicit type signature
or use -fno-monomorphism-restriction
I don't see the problem? GHC seems to tell you about the monomorphism
restriction in your example.
--
Deniz Dogan
___
Haskell-Cafe
2009/10/6 John A. De Goes j...@n-brain.net:
CSS is a good start by it's beset by all the problems of a 1st generation
presentation language, and is not particularly machine-friendly.
I think CSS is neat for websites, but I'm not so sure about using it
in normal applications.
--
Deniz Dogan
,
...
} ...
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
.
txtCommaSeparatedNames.Text.Split(',').Select(x = x.Trim()).Where(x
= x.Length 0).Select(x = Convert.ToInt32(x)).ToList();
Ah, the joy of FP.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo
,
which is `subtract 1'.
Prelude map (subtract 1) [1..4]
[0,1,2,3]
Note that `subtract' is just another name for `flip (-)', i.e.
subtraction with its argument in reverse order.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
balanced trees and is not e.g. a hash map.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
widgetShowAll window
mainGUI
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
on this one.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
actually works...
Usually, it's pretty straight-forward and most options are
self-explanatory.
http://en.wikibooks.org/wiki/Haskell/Packaging#The_Cabal_file
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
. It already has a
dollarification function which converts stuff like hello (there
(how (are you))) into hello $ there $ how $ are you (I'm bad at
coming up with examples).
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
in Haskell, where
is seems to be the convention. In fact, Hoogle only knows about
three functions which start with does.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/6/22 Duncan Coutts duncan.cou...@worc.ox.ac.uk:
On Mon, 2009-06-22 at 08:53 +0200, Deniz Dogan wrote:
2009/6/22 Colin Paul Adams co...@colina.demon.co.uk:
Judah == Judah Jacobson judah.jacob...@gmail.com writes:
Judah On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul
Judah Adamsco
/no/such/directory) should return
false, since there is no such directory.
Are you saying that when a function is named isDirectory you expect
it to only check for a trailing forward slash character?
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell
collisions.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
this the downside is the nasty ghc warnings.
Is there a coding consensus on this issue?
Vasili
I say you should change it. Any maintainer of code with shadowed
variables could easily be confused, no matter what the language is.
--
Deniz Dogan
see, that
doesn't really apply here. something and somethingElse are simply
booleans and each of them have different actions to take if either of
them is True.
So how do I make code like this prettier?
Thanks,
Deniz Dogan
___
Haskell-Cafe mailing list
2009/6/18 Deniz Dogan deniz.a.m.do...@gmail.com:
Hi
I couldn't come up with a better subject than this one, so anyways...
I have a small program which spawns a subprocess. However, when I hit
C-c, the subprocess won't die, instead it will just keep running until
it's done or until I kill
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr:
Cum, 2009-06-19 tarihinde 11:58 +0200 saatinde, Deniz Dogan yazdı:
2009/6/18 Deniz Dogan deniz.a.m.do...@gmail.com:
Hi
I couldn't come up with a better subject than this one, so anyways...
I have a small program which spawns
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr:
Cum, 2009-06-19 tarihinde 12:42 +0200 saatinde, Deniz Dogan yazdı:
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr:
Cum, 2009-06-19 tarihinde 11:58 +0200 saatinde, Deniz Dogan yazdı:
2009/6/18 Deniz Dogan deniz.a.m.do...@gmail.com:
Hi
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr:
Cum, 2009-06-19 tarihinde 13:09 +0200 saatinde, Deniz Dogan yazdı:
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr:
Cum, 2009-06-19 tarihinde 12:42 +0200 saatinde, Deniz Dogan yazdı:
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr
suitable for my needs, but I can't seem to find it. Any
ideas?
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Is the module name Main?
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
generated code...
Cheers,
Thu
Not only can this webpage potentially crash the visitor's browser, I
also don't think anyone anywhere would find that piece of
documentation useful.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
to write a tool for this...
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/6/14 Gwern Branwen gwe...@gmail.com:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On Sun, Jun 14, 2009 at 6:05 AM, Deniz Dogan wrote:
Someone really ought to write a tool for this...
Well, it's an issue of time. Just building and adding the deps is fast
and straightforward. A tool
is an
uppercase letter, otherwise False.
[1] http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html
[2] http://haskell.org/ghc/docs/latest/html/libraries/base/Data-Char.html
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
2009/6/14 Deniz Dogan deniz.a.m.do...@gmail.com:
I'd say take a look at functions all [1] and isUpper [2], those
should be all you need.
Sorry, words is also needed for the idea I was thinking of.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell
)
I'm also fairly new to Haskell, so I would appreciate feedback from the more
experienced.
Thanks.
Not that I'm very experienced myself, but I came up with the first idea as well:
caps1 = all (isUpper . head) . words
--
Deniz Dogan
___
Haskell
that as well, but
couldn't think of any case where head would be called on an empty
list.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
then A else B
However, this idea didn't work, because of strictness.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/6/13 Rakesh Malik invite+yn4n...@facebookmail.com:
To sign up for Facebook, follow the link below:
http://www.facebook.com/p.php?i=898160075k=Z5E62YTRPW2CUGGAX144X3r
I followed that link, in case anyone cares.
--
Deniz Dogan
___
Haskell-Cafe
~/download/something/hello.r00 and calls unrar x
~/download/something/hello.r00.
$ hunp ~/howdy.tar.gz
...calls tar zxvf ~/howdy.tar.gz
Get it from http://hackage.haskell.org/package/hunp
or from git://github.com/skorpan/hunp.git
Enjoy!
--
Deniz Dogan
PS. I was unable to find the thread on how
, to make the bottoms of them look
shadowed.
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com:
2009/6/12 Tom Lokhorst t...@lokhorst.eu:
There's a SVG version of the logo on the wiki:
http://haskell.org/haskellwiki/Thompson-Wheeler_logo
I think the biggest problem making the batteries not look like
batteries is that they don't look round
2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com:
2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com:
2009/6/12 Tom Lokhorst t...@lokhorst.eu:
There's a SVG version of the logo on the wiki:
http://haskell.org/haskellwiki/Thompson-Wheeler_logo
I think the biggest problem making the batteries
2009/6/12 Thomas Davie tom.da...@gmail.com:
On 12 Jun 2009, at 11:15, Deniz Dogan wrote:
2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com:
2009/6/12 Tom Lokhorst t...@lokhorst.eu:
There's a SVG version of the logo on the wiki:
http://haskell.org/haskellwiki/Thompson-Wheeler_logo
I think
that especially the minus sign is a bit
unclear, so maybe we could make the signs heavier?
--
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
returned by the method.
Depending on exactly what you want, you may or may not want to look
into monads, specifically the State or Writer monad. Could you give
some more specific details on what you are trying to accomplish?
--
Deniz Dogan
___
Haskell-Cafe
, but that gives an error:
`pi' is not a (visible) method of class `Floating'
Any idea?
Paul
Are you sure that your ADT fits into the Floating class in the first
place? I reckon if it did, defining pi for it wouldn't be a
problem. Could you show us the code you have?
--
Deniz Dogan
(/=)?
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
2009/5/4 Martijn van Steenbergen mart...@van.steenbergen.nl:
Hi Deniz,
Deniz Dogan wrote:
So, basically I'd like some sort of folding functionality for these
data types, without having to hack the lexer/parser myself
(parameterising the data types), because as I said they're being
would allow me to instantiate Foldable,
but I'm not entirely sure that this is the best way to do this.
Any help is appreciated,
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Litchard
Could this be what you meant?
http://www.absoluteastronomy.com/topics/Haskell_(programming_language)
Deniz Dogan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
IANAL, so would this a problem if this logo won?
Deniz
2009/3/19 Cetin Sert cetin.s...@gmail.com:
37Lenny222
Just noticed that this logo is way too similar to the logo of Techsmith:
http://www.techsmith.com/
Regards,
CS
2009/3/19 Eelco Lempsink ee...@lempsink.nl
On 19 mrt 2009, at
2009/3/12 Satnam Singh satn...@microsoft.com:
I agree that looking for a mascot that is inspired by laziness is a bad
idea from a P.R. perspective (I am tired of people walking out the room when
I give Haskell talks to general audiences and explain lazy evaluation).
Perhaps this is just an
2009/3/12 Colin Paul Adams co...@colina.demon.co.uk:
Deniz == Deniz Dogan deniz.a.m.do...@gmail.com writes:
Deniz 2009/3/12 Satnam Singh satn...@microsoft.com:
I agree that looking for a mascot that is inspired by
laziness is a bad idea from a P.R. perspective (I am tired
2009/3/13 Benjamin L. Russell dekudekup...@yahoo.com:
On Thu, 12 Mar 2009 09:11:15 -0500, Gregg Reynolds d...@mobileink.com
wrote:
[snip]
Why even bother discussing whether a potential mascot should be cute
or not? You guys should come up with new ideas instead of simply
stating what you
2009/3/11 minh thu not...@gmail.com:
2009/3/11 Bulat Ziganshin bulat.zigans...@gmail.com:
Hello Wolfgang,
Wednesday, March 11, 2009, 1:06:37 PM, you wrote:
Hehe, I love it. Sloth is a synonym for Lazyness in English too, and
they're so freaking cute... :)
Same in German: The german
It's got my vote!
2009/3/10 Joe Fredette jfred...@gmail.com:
Hehe, I love it. Sloth is a synonym for Lazyness in English too, and they're
so freaking cute... :)
Maurício wrote:
Hi,
Here in Brazil we have a forest animal we name 'preguiça' -- literally,
lazyness. What better mascot we
2009/2/6 Jonathan Cast jonathancc...@fastmail.fm:
Emacs' terminal is also lacking all the modern conveniences, like
addressable cursors and builtin line-editing designed for 1970s printing
terminals and practically no searching capabilities. Alternatively, you
could say it's incompatible with
Hi
I'm currently working on hacking Data.Generics for my master thesis.
I'm basically trying to find out whether it can be made a bit faster
using e.g. rewrite rules. The problem I'm having is that I need an
easy way to import my own modified version of Data.Generics (currently
located in the
2009/2/2 Emil Axelsson e...@chalmers.se:
Hello,
Are there any Haskell tutorials suitable for people who don't (and possibly
don't want to) know Haskell, but just want to use an embedded language that
happens to be in Haskell?
Such a tutorial would focus on using libraries rather than
85 matches
Mail list logo