Re: [Haskell-cafe] Conduit : is it possible to write this function?

2013-08-26 Thread Erik de Castro Lopo
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

[Haskell-cafe] Conduit : is it possible to write this function?

2013-08-23 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Custom Setup.hs and Paths module

2013-07-03 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Custom Setup.hs and Paths module

2013-07-02 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Improving GHC's LLVM Backend

2013-06-28 Thread Erik de Castro Lopo
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, >

Re: [Haskell-cafe] LLVM Backend status

2013-06-28 Thread Erik de Castro Lopo
/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 -- ---------

Re: [Haskell-cafe] LLVM Backend status

2013-06-27 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] LLVM Backend status

2013-06-27 Thread Erik de Castro Lopo
? 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:/

Re: [Haskell-cafe] Compiled code

2013-03-22 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Compiled code

2013-03-22 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] attoparsec and backtracking

2013-03-15 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] ANNOUNCE: io-streams 1.0.0.0

2013-03-05 Thread Erik de Castro Lopo
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.

Re: [Haskell-cafe] Is the haksell-pkg-janitors group on github alive?

2013-02-22 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] performance question

2013-02-13 Thread Erik de Castro Lopo
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/ _

Re: [Haskell-cafe] Substantial (1:10??) system dependencies of runtime performance??

2013-02-02 Thread Erik de Castro Lopo
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-

Re: [Haskell-cafe] Substantial (1:10??) system dependencies of runtime performance??

2013-02-02 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Suggestiong for inter-thread communication

2013-01-26 Thread Erik de Castro Lopo
. 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.

[Haskell-cafe] Suggestiong for inter-thread communication

2013-01-26 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Type error when trying to adapt http-proxy to new conduit

2012-12-26 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Survey: What are the more common Haskell IDEs in use ?

2012-11-23 Thread Erik de Castro Lopo
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

[Haskell-cafe] Quasiquotation page on HaskellWiki needs updating

2012-11-23 Thread Erik de Castro Lopo
-> 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

Re: [Haskell-cafe] Cabal failures...

2012-11-23 Thread Erik de Castro Lopo
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/ __

Re: [Haskell-cafe] Cabal failures...

2012-11-20 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Cabal failures...

2012-11-20 Thread Erik de Castro Lopo
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 -- ----------

Re: [Haskell-cafe] curl package broken in Windows

2012-11-11 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Problems installing DPH

2012-10-03 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Darcs on Windows 7

2012-09-22 Thread 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

Re: [Haskell-cafe] Benchmark of DFT libraries in Haskell

2012-08-07 Thread Erik de Castro Lopo
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-

Re: [Haskell-cafe] Benchmark of DFT libraries in Haskell

2012-08-06 Thread 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

[Haskell-cafe] GHC users on PowerPC and *BSD/Darwin?

2012-07-12 Thread 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

[Haskell-cafe] Which mailing list for GHC hacking discussion?

2012-07-08 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Long-running request/response protocol server using enumerator/iterator/iterIO/pipes/conduits/...

2012-06-27 Thread Erik de Castro Lopo
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/ ___

[Haskell-cafe] cvs-ghc mailing list silently dropping my mails

2012-06-23 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Guide for converting existing code to Conduit 0.4?

2012-04-09 Thread Erik de Castro Lopo
HC.requestBody = HC.RequestBodySource contentLength $ fmap copyByteString $ Wai.requestBody req but the type of the RequestBodySource constructor and Wai.requestBody hasn't changed. Erik -- ----------

Re: [Haskell-cafe] Guide for converting existing code to Conduit 0.4?

2012-04-09 Thread Erik de Castro Lopo
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

[Haskell-cafe] Guide for converting existing code to Conduit 0.4?

2012-04-09 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Erik de Castro Lopo
/.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

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Erik de Castro Lopo
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

[Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Impact of "try" on Parsec performance

2012-03-02 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] [Haskell] ANNOUNCE: hs-json-rpc 0.0.0.1

2012-02-09 Thread Erik de Castro Lopo
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 -- --------

Re: [Haskell-cafe] Contributing to http-conduit

2012-02-07 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] ANN: bytestring-lexing 0.4.0

2012-02-03 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Conduit experiment: Is this correct?

2012-02-03 Thread Erik de Castro Lopo
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/ ___

Re: [Haskell-cafe] ANN: bytestring-lexing 0.3.0

2012-01-29 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] ANN: bytestring-lexing 0.3.0

2012-01-28 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Contributing to http-conduit

2012-01-28 Thread Erik de Castro Lopo
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 -- -

Re: [Haskell-cafe] TCP Server

2012-01-28 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] TCP Server

2012-01-28 Thread Erik de Castro Lopo
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 -- ---------

Re: [Haskell-cafe] bindings for libvirt

2012-01-23 Thread Erik de Castro Lopo
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

[Haskell-cafe] Can't install hspec

2012-01-22 Thread Erik de Castro Lopo
? 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

Re: [Haskell-cafe] [C][enums][newbie] What is natural Haskell representation of such enum?

2012-01-22 Thread Erik de Castro Lopo
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/

Re: [Haskell-cafe] Contributing to http-conduit

2012-01-20 Thread Erik de Castro Lopo
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/ ___

Re: [Haskell-cafe] Conduit versions of wai and warp?

2012-01-18 Thread Erik de Castro Lopo
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/ _

Re: [Haskell-cafe] Conduit versions of wai and warp?

2012-01-18 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] implementing a text editor swap file

2012-01-17 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] implementing a text editor swap file

2012-01-17 Thread Erik de Castro Lopo
; 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

Re: [Haskell-cafe] implementing a text editor swap file

2012-01-17 Thread Erik de Castro Lopo
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.

[Haskell-cafe] Conduit versions of wai and warp?

2012-01-17 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Network.Browser and Network.TLS

2012-01-16 Thread Erik de Castro Lopo
> 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

Re: [Haskell-cafe] bindings for libvirt

2012-01-16 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] bindings for libvirt

2012-01-15 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] bindings for libvirt

2012-01-15 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] hackage trac broken

2012-01-15 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] A simple telnet client using Conduit

2012-01-11 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] A simple telnet client using Conduit

2012-01-11 Thread Erik de Castro Lopo
[ stdin, stdout, hsock ] (releaseThread, _) <- with (forkIO $ runResourceT $ sourceHandle stdin $$ sinkHandle hsock) killThread sourceHandle hsock $$ sinkHandle stdout release releaseThread release releaseSock Erik -- --------

Re: [Haskell-cafe] A simple telnet client using Conduit

2012-01-11 Thread Erik de Castro Lopo
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-

[Haskell-cafe] A simple telnet client using Conduit

2012-01-11 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] feed release plan

2012-01-10 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Composing Enumeratees in enumerator

2011-12-24 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] "mapping" an Enumerator

2011-12-21 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-20 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Weird interaction between literate haskell, ghci and OverloadedStrings

2011-12-03 Thread Erik de Castro Lopo
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 -- --------

Re: [Haskell-cafe] Weird interaction between literate haskell, ghci and OverloadedStrings

2011-12-02 Thread Erik de Castro Lopo
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/

[Haskell-cafe] Weird interaction between literate haskell, ghci and OverloadedStrings

2011-12-02 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Proposed change to mime-mail

2011-11-23 Thread Erik de Castro Lopo
[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

Re: [Haskell-cafe] Poll: Do you want a mascot?

2011-11-23 Thread Erik de Castro Lopo
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.

Re: [Haskell-cafe] Is SmallCheck maintained?

2011-11-16 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] haskell-janitors (was Re: New rss maintainer)

2011-10-23 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Implementing a New primop

2011-10-14 Thread Erik de Castro Lopo
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-

Re: [Haskell-cafe] ghc 7.2.1 and super simple DPH

2011-10-02 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] ghc 7.2.1 and super simple DPH

2011-10-02 Thread Erik de Castro Lopo
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) -- ----------

Re: [Haskell-cafe] Haskell Cloud and Closures

2011-10-01 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] I for one welcome our new Robotic Overlords

2011-09-28 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Solving the configuration problem with parametrized modules

2011-09-05 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Decompressing and http-enumerator

2011-08-29 Thread Erik de Castro Lopo
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 -- --

Re: [Haskell-cafe] Decompressing and http-enumerator

2011-08-29 Thread Erik de Castro Lopo
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 -- --

Re: [Haskell-cafe] Decompressing and http-enumerator

2011-08-29 Thread Erik de Castro Lopo
; 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/ _

Re: [Haskell-cafe] Seeking Don Stewart

2011-07-13 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Cleaner way to write code and handle errors?

2011-06-28 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Software patents covered in GHC?

2011-06-25 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Software patents covered in GHC?

2011-06-20 Thread Erik de Castro Lopo
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:/

Re: [Haskell-cafe] best way to use ghc-7.0 under debian stable

2011-06-10 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Reformatter for Show

2011-05-02 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] Wai and http-enumerator not as lazy as I'd like

2011-05-01 Thread Erik de Castro Lopo
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

Re: [Haskell-cafe] How to make ghc 7 with llvm?

2011-04-28 Thread Erik de Castro Lopo
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/ __

Re: [Haskell-cafe] Wai and http-enumerator not as lazy as I'd like

2011-04-28 Thread Erik de Castro Lopo
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

[Haskell-cafe] Wai and http-enumerator not as lazy as I'd like

2011-04-26 Thread Erik de Castro Lopo
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   2   3   >