.
[1] http://lhc-compiler.blogspot.com/2010/06/mirroring-boquists-grin-papers.html#comments
You can find them here: http://mirror.seize.it/papers/
They will also be in the lhc repository once I restore it on code.haskell.org.
--
Cheers,
Lemmih
On Thu, Feb 24, 2011 at 9:36 PM, David Waern david.wa...@gmail.com wrote:
2011/2/24 Lemmih lem...@gmail.com:
They will also be in the lhc repository once I restore it on
code.haskell.org.
Lemmih,
while you're here, what's the status of LHC? It's an interesting
project but we haven't heard
to
building the base libraries for LHC. I recommend waiting for the next
stable release.
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Fri, Nov 13, 2009 at 7:37 PM, Daniel Fischer
daniel.is.fisc...@web.de wrote:
Am Freitag 13 November 2009 18:58:22 schrieb Lemmih:
We no longer use libffi and I've removed the dependency.
However, you're most likely to hit further obstacles when it comes to
building the base libraries
.
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Tue, Dec 16, 2008 at 1:07 PM, Magnus Therning mag...@therning.org wrote:
On Mon, Dec 15, 2008 at 11:33 PM, Lemmih lem...@gmail.com wrote:
2008/12/16 Magnus Therning mag...@therning.org:
This behaviour by Haskell seems to go against my intuition, I'm sure I
just need an update of my
. Saving intermediate results is the
right thing to do but arrays aren't the right way to do it. In this
case, a lazy list will perform much better.
ack n = ackList !! n
where ackList = 0:1:2:zipWith3 (\a b c - a+b+c) ackList (drop 1 ackList)
(drop 2 ackList)
--
Cheers,
Lemmih
there are more just waiting to be developed.
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
)
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
://www.fastcgi.com/
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
a hack and I'm a beginner so comments are scarce and some code may be
strange. ;-)
- Assumes ghc 6.6 is installed to /usr/local
Do you have a smaller test case? I couldn't reproduce the error after
I pulled out the MacOS stuff.
--
Cheers,
Lemmih
, that the convenience of having
--enable-library-profiling on by default is worth the doubled build
time.
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
not allowed, right?), but I would
need to be sure it doesn't get inlined.
You could use GHC.Conc.unsafeIOToSTM. Just be aware that your
transaction may be re-executed an arbitrary number of times.
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell
that
goes out to disk.
[1] also supports infinite data structures
No, it only supports cyclic data structures.
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
shows.. (Greencard.hs exists then)
That's the odd thing I can't cope with at the moment..
And Greencard.hs isn't just empty?
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On 12/12/06, Alfonso Acosta [EMAIL PROTECTED] wrote:
On 12/10/06, Lemmih [EMAIL PROTECTED] wrote:
How about using a StablePtr to a Dynamic?
Uhm, that's a good idea cause no Typeable context will then be
required and thus the function can be exported by the FFI.
On the other hand, using
certainly cannot
invalidate them.
You want a StablePtr.
I'm using StablePtrs already, what made you assume I wasn't using them?
How about using a StablePtr to a Dynamic?
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
, have a look at ':set +s' in ghci
(http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-set.html).
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
wordList2) `seq` return () or
time $ length (doTest wordList2 wordList2) `seq` return () or
time $ trace (doTest wordList2 wordList2) `seq` return ()
didn't work.
Am desperated...
Try:
time $ evaluate (sum (doTest wordList2 wordList2))
--
Cheers,
Lemmih
://www.cs.chalmers.se/~d00nibro/haskell-src-exts/ ).
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
tried yet)
Worked for me with mplayer+w32codecs.
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
on its own.
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
they're all compiled
to unchecked primitives (GHC.Prim.uncheckedShiftRL#).
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
) - (length suffix)
I thinks that's what List.isSuffixOf does.
isSuffixOf x y = reverse x `isPrefixOf` reverse y
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Just copy your local darcs repository to cvs.haskell.org:
scp -r mylibdir cvs.haskell.org:/home/darcs/mylib
Or: darcs put [EMAIL PROTECTED]:public_html/repo
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
- getArgs
flip mapM_ args $ \arg -
flip mapM_ [1..3] $ \n -
putStrLn $ show n ++ ) ++ arg
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
(x:xs) = do putStrLn $ showContent x
showDoc xs
main = showDoc cont
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
Cheers,
Lemmih
)
--
Cheers,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
://hackage.haskell.org/trac/hackage/ticket/65 and various TODO
files.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
/ using hsplugins, which compiles haskell
code at runtime.. There is an example how to compile/call such a haskell
method from C.
Hs-plugins just calls GHC. Going through Haskell to execute GHC is
overkill in the extremes.
--
Friendly,
Lemmih
___
Haskell
not obvious (to me) how to
specify that everything should be installed locally. Any suggestions?
Install locally after configuring this way:
./Setup.lhs configure --user --prefix=$HOME/yourlocalhaskelllibsdir
The --user flag to 'configure' isn't necessary.
--
Friendly,
Lemmih
to registering the package, which I
don't permission for. Any way around this?
Run:
./Setup.lhs install --user
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
a variety of formats and blit them via
OpenGL. This binding even contains relevant example code:
http://darcs.haskell.org/~lemmih/hsSDL
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo
- Socket.recv sock 1
case received of
- error ...
\n | endswith bulk \r\n\r - ...
_ - recv_headers' sock (bulk ++ received)
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
it gets looked for by haskell-fastcgi...
From the README:
Requirements for building:
- The cgi package from:
http://www.cs.chalmers.se/~bringert/darcs/haskell-cgi/
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
ok _ = fail 1
in get = ok
But I get this compile error in at the line marked by a trailing --:
The last statement in a 'do' construct must be an expression
Can you help me?
Omit the 'do' in 'do let ok2'.
--
Friendly,
Lemmih
with 'runDaytimeServer'.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
'. Otherwise just load the file in ghci
(`ghci fac.hs`).
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On 12/16/05, Peter Eriksen [EMAIL PROTECTED] wrote:
threadDelay (10*10^6)
10*10^6 == 10e6, btw.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On 12/16/05, Marcin Tustin [EMAIL PROTECTED] wrote:
On Fri, Dec 16, 2005 at 06:51:12PM +0100, Lemmih wrote:
On 12/16/05, Peter Eriksen [EMAIL PROTECTED] wrote:
threadDelay (10*10^6)
10*10^6 == 10e6, btw.
10e7.
Prelude 10*10^6 == 10e6
True
Prelude 10*10^6 == 10e7
False
10
but example search replace program runs more
then 50% faster with my implementation.
Greetings, Bane.
That's probably because Lemmih's is polymorphic.
Didn't Henning Thielemann write it?
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe
FastPackedString library:
http://www.cse.unsw.edu.au/~dons/fps.html
| I am also hoping to use it for web development.
Wonder how `links' is coming along. (Hope they figured out a better
name, anyway.)
Got an url for the project?
--
Friendly,
Lemmih
-Bits.html
'setBit (bit 0) 4' = 'setBit 1 4' = (binary) 10001 = (dec) 17
You're setting the fifth bit in '1' instead of setting the seconded bit in '4'.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
str $ \c - do r - unsafeRead arr (ord c)
unsafeWrite arr (ord c) (r+1)
liftM (filter (\(c,n) - n0)) (getAssocs arr)
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe
and
then call mapIO forkIO just once, (of course, a new rule should be
attached to the list as well) ?
Thanks a lot
TuanAnh
Something like (untested)...
xs - zipWith ($) forkIO (map (\f - f x y) funs)
tids - sequence xs
or: 'mapM_ [ f x y | f - rules ]'
--
Friendly,
Lemmih
(and reads the contents lazily). Try removing the hClose
(replacing it with (return ()). Lazy IO is nice, but gets tricky at
times.
Or better yet, use 'readFile'.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
GHC.Prim.ThreadId#
-- Imported from GHC.Conc
instance Eq ThreadId-- Imported from Control.Concurrent
instance Ord ThreadId -- Imported from Control.Concurrent
instance Show ThreadId -- Imported from Control.Concurrent
--
Friendly,
Lemmih
___
Haskell
/platform peculiarities.
'sdl-config' is used to set 'ld-options'. Hard coding it is not an option.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
does an implicit convert to
string, btw).
Is there a facility like this in Haskell? Or something else I should
be using, other than lots of ++ ?
There's Text.Printf:
Prelude Text.Printf printf (%s [] %s) hello world :: String
(hello [] world)
--
Friendly,
Lemmih
On 7/18/05, yin [EMAIL PROTECTED] wrote:
Hello,
I'm trying to write a 3D renderer in Haskell using SDL bindings (Lemmih)
and OpenGL bindings. When I try to compile my work, ghc runs collect2:
/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3-20050110/collect2
--eh-frame-hdr -m elf_i386 -dynamic
idea how to resolve this little problem?
Ops, my bad. The example should be fixed now.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
be cleaner.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
any way of passing options to preprocessors using
Cabal. In particular, how do you pass options to Happy?
I am using GHC and Cabal from the CVS head, built about two weeks ago.
You probably forgot to add 'base' to Build-Depends.
--
Friendly,
Lemmih
GHC-6.4 with -hide-all-packages.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
and everything will be good.
But why don't you just derive Eq and Ord for List?
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
1655838864)
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
_a lot_
prettier when using the layout to structure the program.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
. (:
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Wed, 2 Mar 2005 15:54:51 +0100, Stefan Holdermans
[EMAIL PROTECTED] wrote:
Lemmih,
And you can fix it with some unsafeCoerce# magic. (:
Actually, as I pointed out, the required coercion in perfectly safe,
though not implicit:
coerceRight :: Either a b - Either c b
coerceRight
a postgresql binding.
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
which caters for this purpose.
Is this what you're looking for:
http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.WxcClassesAL.html#88
?
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Thu, 17 Feb 2005 11:52:46 +0100, Dmitri Pissarenko
[EMAIL PROTECTED] wrote:
Hello!
Thanks for your answer!
Did you import Foreign.GreenCard?
No. I just followed the building manual of GCJNI.
It may be out of date.
--
Friendly,
Lemmih
-3.01/greencard-bin --target ghc
-
i
/cygdrive/c/Programme/GreenCard/lib/greencard-3.01/imports --
libdir=/cygdrive/c/
Programme/GreenCard/lib/greencard-3.01/ GCJNI.gc
Warning: unable to find StdDIS along the import
Did you import Foreign.GreenCard?
--
Friendly,
Lemmih
IOException -- Imported from `GHC.IOBase'
instance Show IOErrorType -- Imported from `GHC.IOBase'
instance Show HandleType-- Imported from `GHC.IOBase'
[...]
--
Friendly,
Lemmih
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
On Sun, 16 Jan 2005 10:07:14 -0800, Jeremy Shaw
[EMAIL PROTECTED] wrote:
At Sun, 16 Jan 2005 12:09:43 +0100,
Lemmih wrote:
On Sun, 16 Jan 2005 00:13:08 -0800, Jeremy Shaw
[EMAIL PROTECTED] wrote:
Hello,
Is it possible to write a function that would display all the instances
69 matches
Mail list logo