Hello Shu-yu,
Sunday, June 14, 2009, 7:41:46 AM, you wrote:
It seems like getDirectoryContents applies codepage conversion based
it's not a bug, but old-fashioned architecture of entire file apis
you may find my Win32Files.hs module useful - it adopts UTF-16
versions of file operations
Hi all
If I have a number of list
example
list1 = [2,3]
list2 = [1,2]
list3 = [2,3,4]
list4 = [1,2,3]
I want to create a list from the list above with n elements,
non-repeating and each elements index represents 1 of the elements
from the corresponding list so for the above input I would get.
a
Fernan Bolando wrote:
Hi all
If I have a number of list
example
list1 = [2,3]
list2 = [1,2]
list3 = [2,3,4]
list4 = [1,2,3]
I want to create a list from the list above with n elements,
non-repeating and each elements index represents 1 of the elements
from the corresponding list so
On Thu, 2009-06-11 at 23:50 -0500, Vasili I. Galchin wrote:
Hello,
As I have said before I a, cabalizing Swish (a semantic web
toolkit). I have it built and have run most of the original author's
tests by and they pass. There are numerous warnings which seem to be
either lack of a
On Sun, Jun 14, 2009 at 4:13 PM, Erik de Castro
Lopomle...@mega-nerd.com wrote:
Fernan Bolando wrote:
Hi all
If I have a number of list
example
list1 = [2,3]
list2 = [1,2]
list3 = [2,3,4]
list4 = [1,2,3]
I want to create a list from the list above with n elements,
non-repeating and
ghci map reverse $ foldM (\answer list - [x:answer | x - list, not
$ x `elem` answer]) [] [[2,3], [1,2], [2,3,4], [1,2,3]]
[[2,1,4,3],[3,1,4,2],[3,2,4,1]]
On 14 Jun 2009, at 12:06, Fernan Bolando wrote:
Hi all
If I have a number of list
example
list1 = [2,3]
list2 = [1,2]
list3 = [2,3,4]
Hi Duncan,
Actually it was do to a typo on an Executable
I specified N3Parser where I meant N3ParserTest = DUH . I am
totally ashamed .
Vasili
On Sun, Jun 14, 2009 at 3:31 AM, Duncan Coutts
duncan.cou...@worc.ox.ac.ukwrote:
On Thu, 2009-06-11 at 23:50 -0500, Vasili I. Galchin
BTW is TimeDate a Hugism?
Vasili
On Sun, Jun 14, 2009 at 3:58 AM, Vasili I. Galchin vigalc...@gmail.comwrote:
Hi Duncan,
Actually it was do to a typo on an Executable
I specified N3Parser where I meant N3ParserTest = DUH . I am
totally ashamed .
Vasili
On Sun, Jun 14,
Hi,
I use gtk2hs in linux. Well, I have no idea how to install gtk2hs by
cabal, but my program needs it, and I want my program cabalized. So
how to do this?
Thanks.
--
竹密岂妨流水过
山高哪阻野云飞
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
Graphics are fun.
Here's my version.
http://s201.photobucket.com/albums/aa280/Zakardis/?action=viewcurrent=lambda_haskell_platform.png
___
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 Sat, Jun 13, 2009 at 10:22 PM, Magicloud Magiclouds wrote:
Hi,
I am learning to use cabal for my code.
Just when I start, I met a question, is there an easy way to find
out what packages my code
Hi all,
I'd like to run my own version of Hoogle:
http://hackage.haskell.org/package/hoogle
as a CGI script much like this:
http://www.haskell.org/hoogle/
but there doesn't seem to be any documentation on how to do this.
Clues anyone?
Cheers,
Erik
--
I am learning to use cabal for my code.
Just when I start, I met a question, is there an easy way to find
out what packages my code depends?
If you've managed to get your code to compile,
ghc --show-iface Main.hi
is perhaps the easiest way (ghc --make and ghci will also report
package
* Magicloud Magiclouds magicloud.magiclo...@gmail.com [2009-06-14
17:30:33+0800]
Hi,
I use gtk2hs in linux. Well, I have no idea how to install gtk2hs by
cabal, but my program needs it, and I want my program cabalized. So
how to do this?
Thanks.
gtk2hs consists of several cabal packages,
* Deniz Dogan deniz.a.m.do...@gmail.com [2009-06-13 16:17:57+0200]
I remember needing a non-strict sum at least once, but I do not
remember the exact application.
We may agree that lazy sum is sometimes (rarely) needed, but then it can
be always written as fold. However, in most cases user
* Magicloud Magiclouds magicloud.magiclo...@gmail.com [2009-06-14
18:48:26+0800]
My gtk2hs is install manually, `configure make make install`. So
It's okay.
when I add gtk to build-dependency, it tells me
Setup.hs: At least the following dependencies are missing:
gtk -any
Installation of
If your module compiles, you can get the info by passing '-ddump-types':
TYPE SIGNATURES
numbersTests :: Test
testAverage :: Test
testBindInt :: Test
TYPE CONSTRUCTORS
Dependent modules: [(MoresmauJP.Util.Numbers, False)]
Dependent packages: [HUnit-1.2.0.3, base, ghc-prim, integer]
-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 I'd need to know about, have installed,
and
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
Hello everyone!
Im a Haskell newbie, and Ive have few unanswered questions. For someone more
experienced (at least I think so) its a very simple task, but I just cant
get a grip on it and its pretty frustrating. It wouldn't be that bad if I
haven't browse thru bunch of pages and tutorials and
2009/6/14 Gjuro Chensen daim...@gmail.com:
Hello everyone!
Im a Haskell newbie, and Ive have few unanswered questions. For someone more
experienced (at least I think so) its a very simple task, but I just cant
get a grip on it and its pretty frustrating. It wouldn't be that bad if I
haven't
Gjuro Chensen wrote:
Hello everyone!
Im a Haskell newbie, and Ive have few unanswered questions. For someone more
experienced (at least I think so) its a very simple task, but I just cant
get a grip on it and its pretty frustrating. It wouldn't be that bad if I
haven't browse thru bunch of
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
Am Sonntag 14 Juni 2009 17:19:22 schrieb Gjuro Chensen:
Hello everyone!
Im a Haskell newbie, and Ive have few unanswered questions. For someone
more experienced (at least I think so) its a very simple task, but I just
cant get a grip on it and its pretty frustrating. It wouldn't be that bad
Here's what I came up with. I especially like the 2nd version, even
though it's longer, as it seems very declarative.
caps1 s = all (\x - isUpper (head x)) (words s)
caps2 s = all startsWithUpper (words s) where
startsWithUpper w = isUpper (head w)
I'm also fairly new to Haskell, so I
Toby Miller wrote:
Here's what I came up with. I especially like the 2nd version, even
though it's longer, as it seems very declarative.
caps1 s = all (\x - isUpper (head x)) (words s)
caps2 s = all startsWithUpper (words s) where
startsWithUpper w = isUpper (head w)
I'm also
2009/6/14 Toby Miller t...@miller.ms:
Here's what I came up with. I especially like the 2nd version, even though
it's longer, as it seems very declarative.
caps1 s = all (\x - isUpper (head x)) (words s)
caps2 s = all startsWithUpper (words s) where
startsWithUpper w = isUpper (head w)
Toby Miller wrote:
Here's what I came up with. I especially like the 2nd version, even
though it's longer, as it seems very declarative.
caps1 s = all (\x - isUpper (head x)) (words s)
caps2 s = all startsWithUpper (words s) where
startsWithUpper w = isUpper (head w)
I'm also fairly
2009/6/14 Jochem Berndsen joc...@functor.nl:
Toby Miller wrote:
caps1 s = all (\x - isUpper (head x)) (words s)
This seems fine, but you need to check that words never returns a list
containing the empty string (otherwise `head' will fail).
Is there any such case? I was thinking about that as
Deniz Dogan wrote:
2009/6/14 Jochem Berndsen joc...@functor.nl:
Toby Miller wrote:
caps1 s = all (\x - isUpper (head x)) (words s)
This seems fine, but you need to check that words never returns a list
containing the empty string (otherwise `head' will fail).
Is there any such case? I was
On Jun 14, 2009, at 6:05 AM, Deniz Dogan wrote:
2009/6/14 Gwern Branwen gwe...@gmail.com:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On Sat, Jun 13, 2009 at 10:22 PM, Magicloud Magiclouds wrote:
Hi,
I am learning to use cabal for my code.
Just when I start, I met a question, is there
Gjuro Chensen wrote:
/cut
I dont know everyone will see this, but I would like thank everyone who
found time to help, and not spam too much doing it:D.
Well, I did it! Its not great (especially comparing to those one line
solutions, wow!), but it works.
module Main where
Gjuro Chensen wrote:
startsWithUpper :: String - Bool
startsWithUpper []= False
startsWithUpper string =
if myIsUpper(head(string)) then True
else False
It is very good that you caught the issue of taking the head of an empty
list :)
I saw here and also below, that you did
Haskell Gurus,
I have tried to use profiling to tell me what's going on here, but it
hasn't helped much, probably because I'm not interpreting the results
correctly.
Empirically I have determined that the show's are pretty slow, so an
alternative to them would be helpful. I replaced the
Once more I forgot to send my messages to the haskell cafe list. All the
rest of the list which I´m suscribed to, send the mail replies to the list
automatically, but this doesn´t. Please, can this be changed?.
-- Forwarded message --
From: Alberto G. Corona agocor...@gmail.com
On 14 Jun 2009, at 12:47, Roman Cheplyaka wrote:
* Deniz Dogan deniz.a.m.do...@gmail.com [2009-06-13 16:17:57+0200]
I remember needing a non-strict sum at least once, but I do not
remember the exact application.
We may agree that lazy sum is sometimes (rarely) needed, but then it
can
be
Alberto G. Corona wrote:
Once more I forgot to send my messages to the haskell cafe list. All the
rest of the list which I´m suscribed to, send the mail replies to the list
automatically, but this doesn´t. Please, can this be changed?.
This comes up every so often, but I would be against
A much better idea than making sum strict, would simply be to add a
sum'.
Even better to abstract over strictness, to keep a lid on code duplication?
{-# LANGUAGE TypeOperators #-}
sum = foldlS ($) (+) 0
sum' = foldlS ($!) (+) 0
-- identity on constructors of t (from a),
Hi,
While playing with Church Encodings of data structures, I realized
there are generalisations in the same way Data.Foldable and
Data.Traversable are generalisations of lists.
The normal Church Encoding of lists is like this:
newtype List a = L { unL :: forall b. (a - b - b) - b - b }
On Fri, Jun 12, 2009 at 12:46 PM, Gwern Branwengwe...@gmail.com wrote:
...
If I might suggest some users we might give the bit to: myself, dons,
Magnus Therning, Neil Mitchell, and byorgey. All have been editing the
wiki for some time, some have administrator experience on Wikipedia,
and all
Gwern Branwen wrote:
This runs on MediaWiki, right? How about adding a CAPTCHA for account
registrations?
http://www.mediawiki.org/wiki/Extension:ConfirmEdit
See http://haskell.org/haskellwiki/Special:Version
ConfirmEdit would require an upgrade.
This is the ideal solution. But it requires
Gwern Branwen wrote:
Presumably Ashley is busy.
Yes. Average request rate is about one each day; I tend to do them in a
lump about once a week.
One solution would be to have Ashley re-enable user registrations.
This has been suggested before, but no one knows how bad the spam
would be.
2009/6/15 Paul Chiusano paul.chius...@gmail.com:
Hello,
I was recently trying to figure out if there was a way, at runtime, to do
better strictness analysis for polymorphic HOFs, for which the strictness of
some arguments might depend on the strictness of the strictness of function
types that
There's a current thread in the Erlang mailing list about
priority queues. I'm aware of, for example, the Brodal/Okasaki
paper and the David King paper. I'm also aware of James Cook's
priority queue package in Hackage, have my own copy of Okasaki's
book, and have just spent an hour searching the
On 14 Jun 2009, at 8:06 pm, Fernan Bolando wrote:
Hi all
If I have a number of list
example
list1 = [2,3]
list2 = [1,2]
list3 = [2,3,4]
list4 = [1,2,3]
I want to create a list from the list above with n elements,
non-repeating and each elements index represents 1 of the elements
from the
nub . concat ?
Richard O'Keefe wrote:
On 14 Jun 2009, at 8:06 pm, Fernan Bolando wrote:
Hi all
If I have a number of list
example
list1 = [2,3]
list2 = [1,2]
list3 = [2,3,4]
list4 = [1,2,3]
I want to create a list from the list above with n elements,
non-repeating and each elements
Just guessing. How do you know it's an accident?
Richard O'Keefe wrote:
On 15 Jun 2009, at 4:26 pm, Tony Morris wrote:
Prelude Data.List nub . concat $ [[2, 3], [1, 2], [2, 3, 4], [1, 2, 3]]
[2,3,1,4]
In this particular case. But that's a lucky accident.\
--
Tony Morris
On Sun, Jun 14, 2009 at 8:18 PM, Eugene Kirpichov ekirpic...@gmail.comwrote:
The idea looks cool, but perfect strictness analysis is not possible,
t.i. the problem of determining whether f _|_ = _|_ is undecidable,
since it is a non-trivial property of f (there exist f's for which it
is true,
Hello,
In some code that I am cabalizing I ran into:
type DataLiteral = ref RDFgraph defs
type URIReference = ref RDFgraph defs
type NonNegativeInteger = ???
What is this?
Kind regards,
Vasili
___
Haskell-Cafe mailing list
49 matches
Mail list logo