В сообщении от 24 апреля 2010 06:14:55 вы написали:
Khudyakov Alexey wrote:
Actually, the behavior of openFile when given a String with characters
0xFF is also completely undocumented. I am not sure what it does with
that. It should probably be the same as runCommand, whatever
В сообщении от 23 апреля 2010 02:36:07 Rickard Karlsson написал:
Hi,
I'm trying to download a file in UTF-8 with libcurl(1.3.5) and GHC 6.12:
import Network.Curl
u = http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt;
main = curlGetString u [] = putStrLn . snd
Which doesn't
В сообщении от 23 апреля 2010 21:44:29 John Goerzen написал:
Here is a very interesting little problem.
ghci
GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base
В сообщении от 24 апреля 2010 03:50:54 John Goerzen написал:
Ivan Lazar Miljenovic wrote:
John Goerzen jgoer...@complete.org writes:
ghci
GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking
. V.toList
Any suggestions about implementation of such function?
Specifically I want to use Random monad.
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
В сообщении от 21 марта 2010 09:37:26 Casey McCann написал:
Using head and tail on longer lists fails likewise. I expect there's
some way to make it work without simply increasing the stack depth,
but I'm not sure how. Any thoughts?
It's possible to use binary encoding for natural numbers.
В сообщении от 19 февраля 2010 15:20:30 Serguey Zefirov написал:
And, actually, what looks like O(n) at the compile time is O(1) at
runtime. This is so because it is really hard to create types at
runtime. ;)
What did you mean by really hard? One have to use black magic and ask demons
for
} |]
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
В сообщении от 12 января 2010 03:35:10 Günther Schmidt написал:
Hi all,
I've used Parsec to tokenize data from a text file. It was actually
quite easy, everything is correctly identified.
So now I have a list/stream of self defined Tokens and now I'm stuck.
Because now I need to write my
В сообщении от Четверг 07 января 2010 21:35:10 rodrigo.bonifacio написал:
Hi all,
I have a family of parsers that return either (Success t) or (Fail), using
the following data type:
data ParserResult a = Success a | Fail String
deriving (Read, Show, Eq, Ord)
isSuccess (Success _) =
В сообщении от 27 ноября 2009 23:55:47 Don Stewart написал:
alexey.skladnoy:
It does but it was already noted that cereal uses strict bytestrings
which are not really convenient when dealing with huge inputs. One may
end up using both binary and cereal which is not really satisfactory.
В сообщении от 27 ноября 2009 23:09:53 Don Stewart написал:
alexey.skladnoy:
Hello
Is there any plans to add error handling for binary? When it comes to
binary parsing most awkward part is error handling
It is now available in the 'cereal' package. A strict binary with
explicit,
В сообщении от Пятница 27 ноября 2009 23:55:47 вы написали:
It is quite hard to do a good job of lazy input, but explicit checked
errors (turning it into an Either Error a makes the whole stream
strict!).
It does. To a degree. For example if one need to read 8 bytes to decide
whether parsing
В сообщении от 09 октября 2009 16:24:49 Jose A. Ortega Ruiz написал:
Hi,
When i try to cabal install htzaar i get the following error:
src/Main.hs:11:7:
Could not find module `Play':
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
В сообщении от 30 сентября 2009 23:42:57 Casey Hawthorne написал:
On Wed, 30 Sep 2009 21:24:11 +0200, you wrote:
I?m a physicist, so I think they would be attracted by something like
Haskell: high level physics modelling at Fortran speeds
Haskell: mathematics beyond numerical calculus
В сообщении от 30 сентября 2009 18:05:28 Peter Verswyvelen написал:
On Wed, Sep 30, 2009 at 3:56 PM, Kalani Thielen kthie...@lab49.com wrote:
That might be true, but the calculus and even arithmetic were once
considered obscure.
Mmm, to the average student calculus is still very obscure
В сообщении от 30 сентября 2009 15:58:40 Jochem Berndsen написал:
Deniz Dogan wrote:
2009/9/30 Andrew Coppin andrewcop...@btinternet.com:
(Mr C++ argues that homo sapiens fundamentally think in an imperative
way, and therefore functional programming in general will never be
popular.
В сообщении от 30 сентября 2009 21:42:57 ed...@ymonad.com написал:
Hi,
I will give a seminar to physicists at USP (Universidade de São Paulo,
Brazil) university and they asked me for a good title, something that can
attract physicists. Anyone has some suggestions? (Will be a seminar about
В сообщении от Среда 30 сентября 2009 22:37:52 вы написали:
Khudyakov Alexey wrote:
В сообщении от 30 сентября 2009 21:42:57 ed...@ymonad.com написал:
Hi,
I will give a seminar to physicists at USP (Universidade de São Paulo,
Brazil) university and they asked me for a good title
В сообщении от Среда 30 сентября 2009 23:08:02 вы написали:
Yep, sure did. I just hit `reply' assuming haskell-cafe was in the
reply-to. I do that more often than not it seems.
Going back to the OP, what area of physics, and how on earth are you
going to convert years of fortran users to
В сообщении от Среда 30 сентября 2009 23:29:32 Max Rabkin написал:
On Wed, Sep 30, 2009 at 9:24 PM, Alberto G. Corona agocor...@gmail.com
wrote:
Haskell: mathematics beyond numerical calculus
I'd imagine most physicists know a fair bit of mathematics beyond
numerical calculus; what they
В сообщении от 27 сентября 2009 18:59:57 Günther Schmidt написал:
and now I'll really have to figure out Iteratee / Enumerator to solve it.
Can I call myself a Haskeller now?
If you wish so.
But in fact you only need to overcome laziness. Not the first time in the life
I suppose.
memmoveOffMU = primMemmoveOffMU
Am I moving in right direction and are there other/better solutions to
problem?
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
. So data could be used
with other tools.
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
В сообщении от Воскресенье 20 сентября 2009 22:03:42 вы написали:
alexey.skladnoy:
Hello.
... skipped ...
Where can we get the code? :)
http://hackage.haskell.org/package/histogram-fill-0.1.0
-- Don (who thinks it is interesting that hackage is now implied)
It's so easy
to old behavior.
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
В сообщении от Суббота 12 сентября 2009 18:46:28 автор Xiao-Yong Jin написал:
I believe most of the linux distributions do not have
`lapack.pc', if you install certain implementation of lapack
like the one provided by netlib.org, or the one with
`ATLAS', or the one provided by intel mkl. So,
В сообщении от Понедельник 14 сентября 2009 12:41:29 вы написали:
If pkgconfig-depends lines is removed from cabal file it builds fine.
But any program which uses levmar fails to link
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
В сообщении от 14 сентября 2009 13:28:33 автор Roel van Dijk написал:
Thank you for testing. I have just released bindings-levmar-0.1.0.1 on
hackage. It simply replaces pkgconfig-depends with extra-libraries. I
hope this solves the installation problems.
Yes. Now it installs fine.
В сообщении от Вторник 15 сентября 2009 00:15:10 автор Don Stewart написал:
State /= Imperative Programming
Yup, it's anarchy at times...
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
В сообщении от Четверг 10 сентября 2009 17:21:40 автор Bas van Dijk написал:
We like to announce the release of a Haskell binding to Manolis
Lourakis's C levmar library
bindings-levmar fails to configure on debian testing with following message:
$ cabal install bindings-levmar
Resolving
On Пятница 10 июля 2009 12:55:46 Magnus Therning wrote:
Not that I have any hope of being able to answer your question, but I
think it might be useful if you informed us where the characters are
mangled. Is it when you view it in a browser, or when you open the
Haddock-generated HTML files in
] http://haskell.org/haskellwiki/Template_Haskell
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
for that link. I didn't find it earlier. But actually I asked what
are you trying to write?
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
there is System.Console.GetOpt.
All the splitting, escaping and quotes interpretaion is done by shell. All
what get program when starts is list of strings. Program name is actually
arbitrary string. (At least on unices, it may work a bit differently on
windows).
--
Khudyakov Alexey
On Saturday 23 May 2009 23:23:05 Henning Thielemann wrote:
Interesting solution however it does not perform very nice. I wrote
microbenchmark
... skipped ...
I didn'd do any profiling so I have no idea why writing is so slow.
If you use top-level definition 'xs' the program might
didn'd do any profiling so I have no idea why writing is so slow.
--
Best regard Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
tricks ghc used.
I think code with list is more clear. Another problem that you can't use
existing Binary instances with Builder.
--
Best regards Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
[]
else do x - getter
xs - getStream getter
return (x:xs)
-- | Write list of values.
putStream :: (a - Put) - [a] - Put
putStream f = mapM_ f
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
On Friday 15 May 2009 06:52:29 David Leimbach wrote:
I actually need little endian encoding... wondering if anyone else hit this
with Data.Binary. (because I'm working with Bell Lab's 9P protocol which
does encode things on the network in little-endian order).
Anyone got some tricks for this?
On Monday 16 March 2009 06:40:12 Alexander Dunlap wrote:
Hi all,
I have noticed that in both Data.Binary and Data.Text (which is still
experimental, but still), the decode functions can be undefined
(i.e. bottom) if they encounter malformed input.
What is the preferred way to use these
On Thursday 05 March 2009 09:45:51 Magicloud Magiclouds wrote:
I am confused. Code like this works in other WM, except xmonad.
You code does not set _NET_WM_STRUT property. And because of that xmonad
doesn't treat it specifically. You can inspect you window properties using
`xprop' utility.
Oh I've again sent mail to wrong address
-- Forwarded Message --
On Saturday 21 February 2009 02:42:11 you wrote:
On Sat, Feb 21, 2009 at 12:22 AM, Bulat Ziganshin
bulat.zigans...@gmail.com
wrote:
Hello Khudyakov,
Saturday, February 21, 2009, 2:07:39 AM, you wrote:
On Friday 20 February 2009 16:29:29 Bulat Ziganshin wrote:
Hello haskell-cafe,
since there are no objective tests comparing ghc to gcc, i made my own
one. these are 3 programs, calculating sum in c++ and haskell:
main = print $ sum[1..10^9::Int]
... skipped ...
The discussion is mostly
to imagine
any. Naive approach lead to nothing (no surprise):
Prelude Data.Function fix (^^2)
interactive: out of memory (requested 2097152 bytes)
Second question what does word `least' mean?`a' isn't an Ord instance.
--
Khudyakov Alexey
Thankyou everyone. This was most helpful.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
sign.
P.S. Maybe I just to used to TeX.
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
is required (MathPlayer). I believe image are safest way at
least for now.
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
.
For example let consider file with name {0xff} on computer with UTF8 locale.
It's valid and everything, but its name cannot be converted to string. 0xff
byte cannot appear in UTF8 strings.
--
Khudyakov Alexey
___
Haskell-Cafe mailing list
Haskell
49 matches
Mail list logo