ks Michael, that looks like it will fit the bill!
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
o sources 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
Has
ou might call a circular dependency :-).
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
ersion String to write a trivial 5 line file Version.hs.
HTH,
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
ell LLVM
> bindings or about the GHC LLVM backend could give any advice regarding what
> sort of work needs to be done with the LLVM bindings to make them more
> appropriate for use within GHC, or how to approach modifying the existing
> LLVM backend.
>
> Many thanks,
>
/Commentary/Compiler
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 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 perf
?
As someone else stated, 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:/
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 &q
ersion and the versions of
all libraries 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
d parsers. I also know some people
prefer Happy.
> Has anyone compared the performance of attoparsec vs. alex+happy?
I haven't, nor have I compared those two with alex+parsec. It would
be an interesting experiment.
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
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.
t notifications.
Anyway, applied all your patches.
Cheers,
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.hask
able (and more
importantly reusable) 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/
_
ich I solved 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-
em can 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@haske
.
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.
hread.
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/ma
a space leak that
I haven't 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
comments/suggestions are welcome.
I use Geany which is not on the list.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.or
-> Q Pat
, 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 Cast
Linux to Wine.
Would you consider documenting the process of setting everything up
to build Haskell programs under Wine on the Haskell Wiki?
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
__
that could be downloaded onto 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
t difficult for an open source contributor to test on windows?
Hell yes! You 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
--
----------
tall on windows.
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
rt the GHC custom calling
convention 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
darcs run only
> from the CLI?
Yes, darcs is a command line program.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
h
increase the FFT length, the difference between C and Haskell should
decrease.
Cheers,
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-
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
--
--
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
the technique. If there's interest, 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/
___
ue 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/ma
HC.requestBody = HC.RequestBodySource contentLength
$ fmap copyByteString
$ Wai.requestBody req
but the type of the RequestBodySource constructor and Wai.requestBody
hasn't changed.
Erik
--
----------
ence I run into
a bunch of the lower level 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
quot;?
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
/.cabal/bin if alex 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/ma
esod" and have it fail
because alex is missing. This is not a good introduction Haskell/Yesod.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mai
lexing 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/m
rating
better 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/lis
http-conduit has which HTTP lacks is
support for secure HTTPS 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
--
--------
and easy
to use.
Erik
[0] http://hackage.haskell.org/package/http-proxy
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@hask
ures.
Thanks Wren, that is awesome!
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
cant improvement
over Enumerator 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/
___
ations like Warp
where reading 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
t parsing 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 pos
g maintainer (e.g., me). To protect the
> world from me, I'd prefer if the code didn't have the fromJust. This
> might be a good place to leverage the Monad instance of Maybe.
Maybe fromMaybe is a more grokkable function.
Erik
--
-
f Conduits is that
it removes a lot of the complexity of the other Iteratee libraries.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing lis
erio/conduit/pipes
idea has really only been around for a couple 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
--
---------
hub…
+1
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
?
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
ent single bit masks as
constructors to ObjectType and define functions for the ones
that are a combination of one ore more constructor.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
Michael has always
responded relatively quickly and seems very open to suggestions for
improvements to his library.
Cheers,
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
it instead, but I
> 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/
_
versions of
wai and warp?
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
ly be updated 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.has
; to keep an mmap buffer 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
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.
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
> need.
Specifically:
http://hackage.haskell.org/packages/archive/http-conduit/latest/doc/html/Network-HTTP-Conduit.html
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
aml/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
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 L
fficult hurdles with libvirt 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
h
s working on it and when 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
d be written to clean up sockets/fds in preference to cleaning
up threads.
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
[ stdin, stdout, hsock
]
(releaseThread, _) <- with (forkIO $ runResourceT $ sourceHandle stdin $$
sinkHandle hsock) killThread
sourceHandle hsock $$ sinkHandle stdout
release releaseThread
release releaseSock
Erik
--
--------
hreads lying around that would
have been cleaned up much earlier in my soltuion.
Thoughts?
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-
gist.github.com/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
rs
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
noyman's work on Conduits:
https://github.com/snoyberg/conduit
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
externally visible type parameter...
That may indeed help.
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
will only compile programs that
can be proven to terminate. Non terminating programs are rejected.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing lis
consider this a bug until the developers 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
--
--------
ghci.
Unfortunately, thats no better than telling people do:
ghci -XOverloadedStrings file.lhs
Probably worse actually.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
abcd\ncdead\nasdasd\n"
--8<--8<--8<--8<------
--
--
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
[1] and my patches in the
> pull request [2].
>
> If you have any comments on this change, please let me know.
+1
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
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.
the haskell-pkg-janitors group:
https://github.com/haskell-pkg-janitors/
Feel free to join in.
Cheers,
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe m
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 modera
its intent more obvious, I would suggest the name
haskell-pkg-janitors.
Erik
--
------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Haskell-Cafe mailing list
Haskell-Cafe@h
ll stick my hand 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
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-
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
umP [:x * y | x <- xs | y <- ys:]
dotp_wrapper :: PArray Double -> PArray Double -> Double
{-# NOINLINE dotp_wrapper #-}
dotp_wrapper v w = dotp_double (fromPArrayP v) (fromPArrayP w)
--
----------
the Haskell Symposium where this paper was presented. This
limitation is a known limitation and cannot currently be worked around
other than my moving whatever is required to the top level.
Erik
--
----------
E
6_64, PowerPC and SPARC. There is
> ongoing work to make it working on ARM.
I happen 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-ner
icit-parameters
The nice 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 maili
opinion on this either.
> In either case, I'm thinking we should rename defaultDecompress to
> alwaysDecompress (my mistake to start off with), to properly indicate
> what it does.
Ok, I'll prepare a patch along these lines and submit a github pull
request.
Cheers,
Erik
--
--
to be:
simpleHttp :: String -> (ContentType -> Bool) -> m L.ByteString
and exporting both browserDecompress and defaultDecompress so
they can be used as two sane defaults for the second parameter?
Cheers,
Erik
--
--
; reliably handle them correctly. (Anyone else remember Mozilla saving
> compressed tarballs uncompressed?)
Yes, it was a pain in the neck.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
_
reply 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
munity.haskell.org/~ndm/hlint/
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
around the patents
specifics:
http://lwn.net/Articles/338981/
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
n papers which are widely 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:/
repository, this can work quite well.
HTH,
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
Just use ppShow, instead of show.
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
--
----------
Er
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. No
ormat is
> not llvm, so 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/
__
calls httpRedirect to do a lazy download of the specified data and
returns it as a Wai.Response using the ResponseEnumerator constructor.
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 t
would have hoped.
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 Lo
1 - 100 of 286 matches
Mail list logo