$ Data.Conduit.mapOutput Left src1 =
Data.Conduit.mapOutput Right src2
I think this can be generalized to work with more base monads with some
tweaks to (=).
Thanks Michael, that looks like it will fit the bill!
Cheers,
Erik
--
--
Erik de
will be returned
as either a Left or Right of tne new source?
If so, how?
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
with info about the LLVM backend here:
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM
It seems the custom calling convention may only be documented in
the code.
Cheers,
Erik
--
--
Erik de Castro Lopo
bindings to make them more
appropriate for use within GHC, or how to approach modifying the existing
LLVM backend.
Many thanks,
Alex
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
, use `-keep-llvm-files` but be aware that
GHC uses a custom calling convention so calling into GHC generated
LLVM code is non-trivial.
HTH,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
Erik de Castro Lopo wrote:
B B wrote:
1) Is the LLVM Backend actively developed or should I be afraid it will be
discontinued or broken?
My understanding is that it is being actively developed. Currently for
numerical code, the LLVM backend performs better than the native codegen.
I
your orignal .hs file used remain the same. As soon as
any of these versions change, you need the full original .hs file.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
Erik de Castro Lopo wrote:
MigMit wrote:
Suppose I compiled some module and kept it's .hi and .o files. Is it
possible to use this module in my program if the source code was deleted
for some reason?
Seems like the answer is yes
The answer is yes as long as the compiler version
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
s9gf4ult wrote:
Is this something like conduits ?
Yes, its also a bit like Iteratee, Enumerator, Pipes and Machines.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
all your patches.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo
) combinators, that are easier to read and easier
to maintain than anything other than the most trivial regex.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe
probably
be fixed without deepseq-generics and just using BangPatterns.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
with deepseq-generic. However,
I suspect deepseq-generic was a bigger hammer than was actually
needed.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
.
Any advice or things to try?
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
.
There is a select package:
http://hackage.haskell.org/package/select
but I was wondering if there was a more idiomatic Haskell way
of dealing with inputs from more than one source.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
managed to fix yet.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
of setting everything up
to build Haskell programs under Wine on the Haskell Wiki?
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe
, quoteType :: String - Q Type
, quoteDec :: String - Q [Dec]
}
I'm just starting out with quasquotation and am not yet qualified
to update this page myself.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
Geany which is not on the list.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo
have no idea how hard windows is in comparison to say
FreeBSD. Even Apple's OS X is easier than windows, because I have
friends who can give me SSH access to their machines.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
a bare
windows machine and then bootstrap that machine into a full haskell dev
machine you might see some progress on this front.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
was llvm-2.7.
Debian Squeeze is also quite old now (ghc-6.12?) and DPH performance has
been improved quite significantly in the 7 series of compilers.
HTH,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
is a command line program.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell
should
decrease.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hi all,
For GHC development questions (ie hacking on GHC, not with GHC) which
is the appropriate mailing list ghc-cvs or ghc-users?
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
, I'll try
to put together a blog post on using connect-and-resume to solve this
kind of problem.
+1
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing
on that list that needs
to be seen to?
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
issues.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
$ fmap copyByteString
$ Wai.requestBody req
but the type of the RequestBodySource constructor and Wai.requestBody
hasn't changed.
Erik
--
--
Erik de Castro Lopo
http://www.mega
force
the install of alex first?
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
because alex is missing. This is not a good introduction Haskell/Yesod.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
is not already
available.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell
location information.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
operations.
With http-conduit being part of the Wai/Warp/Yesod stack I believe this
is a high tested and rigorously maintained piece of code.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
.
Erik
[0] http://hackage.haskell.org/package/http-proxy
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
but a better solution may still exist (I'm interested in
seeing how Pipes work out).
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
an valid decimal should be as fast as possible, but if
the string isn't valid it doesn't really matter what the result is.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
of years and I would be
surprised it one of them (or a new one combining the best features of
the others) doesn't come out the clear winner in the next year or two.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
of the complexity of the other Iteratee libraries.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
of Maybe.
Maybe fromMaybe is a more grokkable function.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
is efficient for larger
than native types like Int64 on 32-bit systems (including 64-bit OS X),
as well as Integer. The optimization of this function was done in
collaboration with Erik de Castro Lopo, Vincent Hanquez, and Christoph
Breitkopf following a blog post by Erik[2] and ensuing discussion
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
that are a combination of one ore more constructor.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
and seems very open to suggestions for
improvements to his library.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
don't think there's any strong need for this.
Ah, got it now. Thanks.
Look forward to this stuff hitting Hackage.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe
these packages from Github?
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell
Matthew Farkas-Dyck wrote:
http://hackage.haskell.org/package/bytestring-mmap
Since he's editing text, its a pity there isn't a text-mmap
package :-).
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
in sync with the vector than simply allocating
some large fixed size per line?
Very much dependent on whether you are using String or one of the
other two I would think.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
to allow the use of Text
instead of String.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
/ChangeLog.txt
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
it will be up again.
Aw gee! Now I'm going to get blamed for shutting down the hackage trac
when all I did was report spam on it.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
that make the
project cost-prohibitive.
Well there are already Ocaml bindings for libvirt
http://libvirt.org/ocaml/
so its most likely the former.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
Michael Litchard wrote:
That's encouraging!
In fact, since FFI bindings are usually easier in GHC Haskell than
in Ocaml, you should have it done by the end of the week :-).
Cheers,
Erik
--
--
Erik de Castro Lopo
http
/1596792
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
soltuion.
Thoughts?
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
]
(releaseThread, _) - with (forkIO $ runResourceT $ sourceHandle stdin $$
sinkHandle hsock) killThread
sourceHandle hsock $$ sinkHandle stdout
release releaseThread
release releaseSock
Erik
--
--
Erik de Castro Lopo
,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
to terminate. Non terminating programs are rejected.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
explain why this should or
cannot be different, and suggest you file it as such.
I agree. I've lodged a bug report here:
http://hackage.haskell.org/trac/ghc/ticket/5673
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
--
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
people do:
ghci -XOverloadedStrings file.lhs
Probably worse actually.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe
heathmatlock wrote:
Question: Do you want a mascot?
No.
I also really think this poll should have been in a web
site somewhere and not on this list.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
:
https://github.com/haskell-pkg-janitors/
Feel free to join in.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe
up.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
, I would suggest the name
haskell-pkg-janitors.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
Daniel Fischer wrote:
On Monday 24 October 2011, 03:54:09, Erik de Castro Lopo wrote:
R J wrote:
hey Haskell this is nuts http://www.business10i.com
hey Haskell this is nuts ://xxx.xxx.xxx
Maybe its time to moderate all newcomers to this list, at least
until they post
Paul Monday wrote:
I didn't know about glasgow-haskell-users, thanks!
Actually the ghc-cvs list may be even better.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
Double - Double
{-# NOINLINE dotp_wrapper #-}
dotp_wrapper v w = dotp_double (fromPArrayP v) (fromPArrayP w)
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing
Erik de Castro Lopo wrote:
The code you posted had some wrapping issues and was missing an
import.
I should have also mentioned how I figured out what the missing
import was.
Firstly, I tried hoogle [0] but couldn't find it. I then realised
that it must be part of DPH and that I had a copy
. This
limitation is a known limitation and cannot currently be worked around
other than my moving whatever is required to the top level.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
to know (because I'm trying to fix it) that GHCI is broken
(since about 6.8) on PowerPC.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell
thig about this approach is that is not a single unsafe operation
needed.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
compressed tarballs uncompressed?)
Yes, it was a pain in the neck.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
browserDecompress and defaultDecompress so
they can be used as two sane defaults for the second parameter?
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing
and submit a github pull
request.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
to RCPT TO command)
Don recently left Galois and is now working for a bank in NYC.
Find him on google+.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
and freely available on the internet
means that stuf fthat was in GHC first can never be patented (or
at least can be successfully challenged when it is).
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
.
ppShow also has a command line tool called ppsh. I run ppsh in
an xterm, paste the Show output into the xterm and then hit
Control-d to see the formatted output.
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
Michael Snoyman wrote:
On Fri, Apr 29, 2011 at 2:49 AM, Erik de Castro Lopo
Has anyone done anything like this and care to shed some light?
It's a little bit complicated, but hopefully this should help out:
Thats Michael. I've tried it and it works. Now to study it
and figure out how
.
Unfortunately, I've tried a bunch if stuff and nothing I've come up with
even comes close t type checking.
Has anyone done anything like this and care to shed some light?
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega
they install some libraries again.
You seem to think there is a problem where this is no problem :-).
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing
.
The thing is, HE.httpLbsRedirect returns a lazy ByteString and
Wai.responseLBS writes a lazy ByteString, so why isn't the whole thing
lazy?
I'd appreciate any clues.
Cheers,
Erik
--
--
Erik de Castro Lopo
http://www.mega-nerd.com
1 - 100 of 275 matches
Mail list logo