Re: [Haskell-cafe] ANNOUNCE: Ajhc Haskell Compiler 0.8.0.7 Release

2013-07-09 Thread Robert Wills
I'd be very interested in a pic32 port.


On Mon, Jul 8, 2013 at 7:24 PM, Tommy Thorn tt1...@yahoo.com wrote:

 On Jul 6, 2013, at 03:07 , Kiwamu Okabe kiw...@debian.or.jp wrote:
  Umm... Is your question Is Ajhc's goal that build the compiler for
 Android?
  If so, the answer is No.
  The Ajhc's goal is that find the compiler to rewrite the NetBSD kernel
  with Haskell.
 
  But you can do support Android.
  I think porting (A)jhc's RTS to Android NDK is as easy as to Cortex-M4.

 Similarly, I might look into a PIC32 port (= MIPS 4K). I don't expect any
 problems.
 I presume nobody have started on this yet.

 Tommy


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell (GHC 7) on ARM

2012-06-12 Thread Robert Wills
Where do you even see ghc?  I can't see ghc listed anywhere here:

http://archlinuxarm.org/packages

-Rob

On Tue, Jun 12, 2012 at 2:12 AM, gdwe...@iue.edu wrote:

 This is my first time hearing of Arch Linux ARM (http://archlinuxarm.org/)
 but since it is based on Arch Linux (http://www.archlinux.org/),
 it seems odd that Arch Linux ARM's ghc is still 6.12.3,
 when Arch Linux's ghc has been 7.4.1 since March 3 or earlier.
 As far as I could see, all the other Arch Linux ARM
 packages are the same versions as those in Arch Linux.
 Maybe it would be worthwhile to prod the Arch Linux ARM developers?

 On 2012-Jun-10, Ben Gamari wrote:
 
 
  Joshua Poehls jos...@poehls.me writes:
 
   Hello Ben,
  
  Hello,
 
  Sorry for the latency. I'm currently on vacation in Germany so I haven't
  had terribly consistent Internet access.
 
  I've Cc'd haskell-cafe@ as I've been meaning to document my experiences
  anyways and your email seems like a good excuse to do this.
 
 
   I just got a Raspberry Pi and I'm interested in running Haskell on it.
 So
   far I'm running Arch Linux ARM and I noticed there is is a GHC package
   available, but it is version 6.12.3.
  
   ...
  ...


 --
 Gregory D. Weber, Ph. D.:
 Associate Professor of Informatics / \
 Indiana University East   0   :
 Tel. (765) 973-8420; FAX (765) 973-8550  / \
 http://mypage.iu.edu/~gdweber/  1  []

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Stack space overflow in HaskellNet

2011-07-27 Thread Robert Wills
Hello,

I guess I should stick my hand up as the supposed maintainer of HaskellNet.
 Unfortunately I can't say that I know the code that well.  Two years ago I
rescued it
from bitrot cabalized it and when I couldn't get any response from the
original author put myself down as the maintainer.

It is a package which is starting to show its age.  Michael Snoyman and I
had a conversation in February agreeing that I should try to revamp it by
 applying some techniques such as those used in blaze html.  Unfortunately,
I haven't had the time.

I agree with the post above that for mime mail HaskellNet shouldn't be
retreiving all of the messages with their message bodies.  I might see if I
can get a chance to work on it a little this weekend but if someone is using
the library and has some time to make some changes that person woould be
very welcome (and I'd be more than happy if someone wishes to take over as
the maintenance).

-Rob


On Wed, Jul 27, 2011 at 5:47 PM, Donn Cave d...@avvanta.com wrote:

 Quoth Manfred Lotz manfred.l...@arcor.de,
 ...
  The problem seems to lie in the HaskellNet package. If for example I
  only fetch a specific message
 m - fetch con 2092
  having a size of some 1.2m then I get the same stack overflow.
 
  If at runtime I specify +RTS -K40M -RTS it works but takes over 40
  seconds to fetch the message.

 That's not so good, but I wouldn't be surprised if it's a natural parsing
 problem, I mean it's just a lot of data to run through a Haskell parser.

 IMAP does give you the means to mitigate the problem - the big data
 transfer in a FETCH response is preceded by a byte count - but to really
 take advantage of that, how far do you go?  I don't have much experience
 with general purpose parsers, do they often support an efficient counted
 string read?  Is it OK to return String, or do we need a more efficient
 type (e.g., ByteString?)  Is it OK to return any kind of string value -
 given that a message part could be arbitrarily long (and needs to be
 decoded), do you go to a lot of trouble to support large message parts
 but not extremely large ones?

 For me, the answer is for the parser to bail out, reporting the counted
 input as a count but leaving it to the application to actually effect
 the data transfer and return to finish the parse.  That's only moderately
 complicated, but it's part of a general philosophy about application
 driven I/O vs. protocol parsing that seems to be mine alone.

 I have no idea how much could be done to tighten up HaskellNet.IMAP.
 Someone who understands it well enough might be able to get a miraculous
 improvement with a strictness annotation or something.  Maybe you
 could track that down with profiling.

Donn

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Server hosting

2011-05-06 Thread Robert Wills
I've used webfaction with haskell.
http://wrwills.webfactional.com/30/10/2009/Haskell-on-a-Webfaction-Host

-Rob

On Fri, May 6, 2011 at 8:48 PM, Eric Rasmussen ericrasmus...@gmail.comwrote:

 Has anyone tried webfaction.com with Haskell?

 I use them for custom Python web apps and they're great (competitive shared
 hosting price, ssh access, easy to setup proxy apps listening on custom
 ports or cgi apps with the ability to edit .htaccess). Loosely speaking it's
 a cross between traditional shared hosting and VPS hosting, but I'm not
 quite ready for web development with Haskell yet so I've only used it with
 Python.

 On Fri, May 6, 2011 at 12:21 PM, Christopher Done 
 chrisd...@googlemail.com wrote:

 On 6 May 2011 20:18, Steffen Schuldenzucker 
 sschuldenzuc...@uni-bonn.dewrote:

 I don't really expect this to work, but...


 ?php

 $argsstr = ...
 $ok = 0
 passthru( './my_real_cgi '.$argsstr, $ok );
 exit( $ok );

 ?


 I actually got something like that to work on a shared host before, I used
 PHP as the starter and then served a CGI app. You need to make sure the
 shared libraries for Haskell are on there too (gmp, for example, IIRC).

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Can't install haskellnet with ghc7

2011-05-04 Thread Robert Wills
I just uploaded a new version of haskellnet that compiles with
mime-mail-0.3.0.

http://hackage.haskell.org/package/HaskellNet

Hope that helps -- now for some sleep...

http://hackage.haskell.org/package/HaskellNet-Rob

On Wed, May 4, 2011 at 11:28 PM, Daniel Fischer 
daniel.is.fisc...@googlemail.com wrote:

 On Wednesday 04 May 2011 21:57:51, Charles-Pierre Astolfi wrote:
  I tried to install haskellnet with mime-mail-0.2.x and an older
  version of the text library but it still fails with the same error.

 I just did

 $ cabal install --constraint=mime-mail  0.3 HaskellNet

 and it worked fine (ghc-7.0.3), text-0.11.0.7.

 Try the above with the --dry-run flag first, if it says it would install
 packages which you already have (except mime-mail), that may indicate
 problems, otherwise go ahead.

 
  Btw, what is the best way to uninstall a package that has been
  installed via cabal? (or to downgrade it, fwiw)

 $ ghc-pkg unregister mime-mail-0.3.0

 perhaps? cabal has no uninstall command, so that job is for ghc-pkg
 unregister, unless you're willing to delete the whole ~/.ghc/i386-
 linux-7.0.3 and start from next to nothing.

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Cairo and Haskell

2011-04-15 Thread Robert Wills
Have a look at

http://hackage.haskell.org/package/diagrams

and

http://hackage.haskell.org/package/Hieroglyph


On Fri, Apr 15, 2011 at 2:54 PM, Paulo J. Matos pocma...@gmail.com wrote:
 Hi,

 I would like to use Haskell to generate automatically a poster.
 I guess that would be using Cairo so I can have a 2d canvas to draw in and
 maybe even preview before exporting to PDF.

 However, I can't find any documentation on Cairo with Haskell or any code
 examples related to what I want to do.

 Any suggestions?

 Cheers,

 --
 PMatos


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] what is the status of haskell's mail libraries?

2010-12-29 Thread Robert Wills
Sure -- I'll look at doing that.  No time today but should be able to
look at that on Friday.

-Rob

On Wed, Dec 29, 2010 at 6:02 AM, Michael Snoyman mich...@snoyman.com wrote:
 This looks very good, thank you! One comment: do you think it would be
 possible to add a function for sending a mime-mail Mail datatype
 directly? I see that you provide a wrapper around simpleMail in your
 sendMimeMail function, but that won't always be sufficient.

 Michael

 On Tue, Dec 28, 2010 at 9:46 PM, Robert Wills wrwi...@gmail.com wrote:
 I've finally gotten around to doing an update to HaskellNet which
 provides along with some cleanups
 integration with mime-mail.  There is an example of its usage at:

 example/smtpMimeMail.hs

 in

 http://hackage.haskell.org/package/HaskellNet

 -Rob

 On Wed, Oct 27, 2010 at 11:05 AM, Michael Snoyman mich...@snoyman.com 
 wrote:
 On Wed, Oct 27, 2010 at 10:39 AM, Henk-Jan van Tuyl hjgt...@chello.nl 
 wrote:
 On Wed, 27 Oct 2010 04:46:07 +0200, Michael Snoyman mich...@snoyman.com
 wrote:

 I just release mime-mail[1], which can construct multipart messages.

 Note, that this will not run on Windows, as it gives command
  /usr/sbin/sendmail

 The sendmail feature will not work on Windows (and you're right, I
 should document that more clearly). However, rendering of email
 messages is completely cross-platform, and there was some talk of
 getting either HaskellNet or SMTPClient to work with mime-mail, which
 would allow direct sending of email via SMTP.

 Michael
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] what is the status of haskell's mail libraries?

2010-12-28 Thread Robert Wills
I've finally gotten around to doing an update to HaskellNet which
provides along with some cleanups
integration with mime-mail.  There is an example of its usage at:

example/smtpMimeMail.hs

in

http://hackage.haskell.org/package/HaskellNet

-Rob

On Wed, Oct 27, 2010 at 11:05 AM, Michael Snoyman mich...@snoyman.com wrote:
 On Wed, Oct 27, 2010 at 10:39 AM, Henk-Jan van Tuyl hjgt...@chello.nl wrote:
 On Wed, 27 Oct 2010 04:46:07 +0200, Michael Snoyman mich...@snoyman.com
 wrote:

 I just release mime-mail[1], which can construct multipart messages.

 Note, that this will not run on Windows, as it gives command
  /usr/sbin/sendmail

 The sendmail feature will not work on Windows (and you're right, I
 should document that more clearly). However, rendering of email
 messages is completely cross-platform, and there was some talk of
 getting either HaskellNet or SMTPClient to work with mime-mail, which
 would allow direct sending of email via SMTP.

 Michael
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: Digestive functors 0.0.2.0

2010-12-09 Thread Robert Wills
Very nice.  I like the addition of the CLI interface.

I was inspired by this library and Chris Eidhof's Formlets to try to
port this idea to Scala.

https://github.com/wrwills/scormlets

It's not as elegant or as complete as this but it helped me to get my
head around this very
cool idea.

-Rob

On Thu, Dec 9, 2010 at 10:46 PM, Jasper Van der Jeugt
jasper...@gmail.com wrote:
 Hello all,

 I'm very glad to announce the 0.0.2.0 release of the digestive
 functors library. The library provides a general API to input
 consumption, and is an upgrade of formlets.

 I've written an announcing blogpost and tutorial with more information here:

 http://jaspervdj.be/posts/2010-12-09-digestive-functors-0.0.2.html

 You can get it on hackage here:

 http://hackage.haskell.org/package/digestive-functors

 As always, all feedback is welcome.

 Kindest regards,
 Jasper Van der Jeugt

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Load testing

2010-11-29 Thread Robert Wills
Grinder : http://grinder.sourceforge.net/

On Mon, Nov 29, 2010 at 1:23 AM, Tony Morris tonymor...@gmail.com wrote:
 Does there exist a package for convenient load-testing against a
 website? e.g. making lots of HTTP requests against a server, including
 timing, and collecting the results?

 --
 Tony Morris
 http://tmorris.net/


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] iMAP library

2010-11-08 Thread Robert Wills
http://hackage.haskell.org/package/HaskellNet

On Tue, Nov 9, 2010 at 6:16 AM, A Smith asmith9...@gmail.com wrote:
 I'm looking for a Haskell library to allow me to access an IMAP mailbox.
 Anyone know of one I could use ?
 --
 Andrew

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Robert Wills
I've had a look at mime-mail and think it provides a nice interface
for sending emails.

I started trying to write up a simple default interface to it for
easily adding attachments (I was going to look at adding a
pandoc-based automatic markdown to html later today).

getMimeType ('g':'p':'j':'.':_) =  image/jpeg
getMimeType ('g':'e':'p':'j':'.':_) =  image/jpeg
getMimeType ('f':'d':'p':'.':_) =  application/pdf

simpleMail to from subject body attachments =
do
  readAttachments - mapM (\x - B.readFile x) attachments
  return Mail {
   mailHeaders =
   [ (To, to)
   ,(From, from)
   ,(Subject, subject)
   ]
 , mailParts =
 [
  [ Part text/plain None Nothing $ LU.fromString
$ unlines body
  , Part text/html None Nothing $ LU.fromString
$ unlines body
  ]]
 ++
 (map (\x - [Part (getMimeType $ reverse $ fst x)
Base64 (Just $ fst x) $ snd x])
  $ zip attachments readAttachments)
 }


main = do
  myMail -  simpleMail
 wrwi...@gmail.com
 mimem...@test.com
 a test message
 [ so much depends
 , upon
 , a red wheel
 , barrow 你好
 ]
 [/tmp/cv.pdf, /tmp/img.jpg]
  renderSendMail myMail


HaskellNet uses Bytestrings for sending mail so it might be easier to
use it for basic smarthost
sending with mime-mail than with SMTPClient -- but then again
SMTPClient looks at first blush
to be more adaptable.

I tried to use put the result of renderMail' into HaskellNet's sendMail

  renderedMail - renderMail' myMail
  HN.sendMail from [to] renderedMail con
  HN.closeSMTP con

but the typechecker didn't like it:
Couldn't match expected type `Data.ByteString.Internal.ByteString'
   against inferred type `B.ByteString'
In the third argument of `HN.sendMail', namely `renderedMail'

because B.ByteString is Data.ByteString.Lazy.

Not sure how easy that would be to fix.  I'm a little confused by all
the different
types of ByteStrings.

-Rob

On Mon, Oct 18, 2010 at 12:29 PM, Michael Snoyman mich...@snoyman.com wrote:
 On Sun, Oct 17, 2010 at 7:07 PM, Jeremy Shaw jer...@n-heptane.com wrote:
 On Sun, Oct 17, 2010 at 10:14 AM, Michael Snoyman mich...@snoyman.com 
 wrote:

 I'm sure people would love to see built-in support for serving over
 SMTP, but I think that's more appropriate for a different package.
 Proper SMTP support will also include SSL/TLS support, which will
 require even more dependencies.

 SMTPClient,

 http://hackage.haskell.org/package/SMTPClient-1.0.3

 can be used to send mail via SMTP to a smart host. It is still based
 on 'String', but it is a start. To send a simple message you can do:

  import Network.SMTP.Simple
  import System.IO

  main :: IO ()
  main = do
     sendSimpleMessages (hPutStrLn stderr) 10.2.23.11 example.com 
 [message]
     where message = SimpleMessage
                         [NameAddr (Just John Doe) jo...@example.com]
                         [NameAddr (Just Team) t...@exmaple.com]
                         My test email using Network.SMTP.Simple
                         Hi, this is a test email which uses SMTPClient.

 I wonder what it would take to make it so that the message body could
 be multipart mime...

 Currently, the idea in mime-mail is to produce fully-formed messages,
 complete with headers, encoded as UTF-8 lazy bytestrings. To address
 the headers issue, we would need to do one of:

 * Allow SMTPClient to accept messages with the headers already attached.
 * Modify mime-mail to produce a list of headers separate from the
 message content. I'm not opposed to this.

 Regarding the String/ByteString issue, there are three choices I believe:

 * Switch mime-mail to use Strings. I *am* opposed to this ;).
 * Switch SMTPClient to use ByteStrings. I think this is the right answer.
 * Leave the libraries as-is, and just use a Lazy.Char8.unpack to bridge the 
 two.

 Am I leaving anything out? I'd be happy to try and get mime-mail to
 work with SMTPClient.

 Michael
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Robert Wills
I've updated the gist to now include automatic conversion through
pandoc of markdown to html.

On Mon, Oct 18, 2010 at 2:32 PM, Robert Wills wrwi...@gmail.com wrote:
 On Mon, Oct 18, 2010 at 1:57 PM, Michael Snoyman mich...@snoyman.com wrote:

 This is *exactly* the kind of high-level interface I was hoping
 someone would provide ;). Anyone have any objections to this being the
 de-facto simple interface for mime-mail?

 Cool.  It might be good to have something a little more composable so
 eg you could add
 ccs without having to drop down to the lower-level.



 I can help out there. A lazy ByteString is nothing more than a lazy
 list of strict ByteStrings. This can be more efficient since we don't
 need a gigantic single block of memory, and can also allow us to
 generate data lazily, one chunk at a time. Converting a lazy
 ByteString to a strict one can be done with:

 Great that worked.  I'll have a look at HaskellNet and see how easy
 it'll be to change.

 I've put the file I was playing with up here:
 http://gist.github.com/63

 -Rob

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Robert Wills
Yes I was thinking that too.  Bringing in Pandoc brings in too many
other dependencies.
Perhaps it could be left in an uncompiled example or readme?

On Mon, Oct 18, 2010 at 6:20 PM, Michael Snoyman mich...@snoyman.com wrote:
 Just for the record, while I like the markdown-based interface, I
 can't include it in the mime-mail package: I'm not going to make
 Pandoc a dependency of mime-mail, both for weight and license reasons.
 It would be awesome to see a markdown-mail or similar package,
 however.

 Michael

 On Mon, Oct 18, 2010 at 4:33 PM, Robert Wills wrwi...@gmail.com wrote:
 I've updated the gist to now include automatic conversion through
 pandoc of markdown to html.

 On Mon, Oct 18, 2010 at 2:32 PM, Robert Wills wrwi...@gmail.com wrote:
 On Mon, Oct 18, 2010 at 1:57 PM, Michael Snoyman mich...@snoyman.com 
 wrote:

 This is *exactly* the kind of high-level interface I was hoping
 someone would provide ;). Anyone have any objections to this being the
 de-facto simple interface for mime-mail?

 Cool.  It might be good to have something a little more composable so
 eg you could add
 ccs without having to drop down to the lower-level.



 I can help out there. A lazy ByteString is nothing more than a lazy
 list of strict ByteStrings. This can be more efficient since we don't
 need a gigantic single block of memory, and can also allow us to
 generate data lazily, one chunk at a time. Converting a lazy
 ByteString to a strict one can be done with:

 Great that worked.  I'll have a look at HaskellNet and see how easy
 it'll be to change.

 I've put the file I was playing with up here:
 http://gist.github.com/63

 -Rob



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Robert Wills
Last summer I put cabalized HaskellNet (written by Jun Mukai for a
GSOC) (http://hackage.haskell.org/package/HaskellNet)
and uploaded it to hackage.  I put myself down as a maintainer but I
haven't done much maintaining.

HaskellNet also does multipart mime and base64 stuff as well as imap
and pop access.  I haven't looked at Michael's package yet -- I'll
have a look this morning
to compare.

I've been meaning to add try to tls support to HaskellNet.

I don't have any huge attachment to HaskellNet so I'd be happy to just
help to migrate the useful bits of it to some larger official email
package.

-Rob

On Sun, Oct 17, 2010 at 8:32 AM, Kevin Jardine kevinjard...@gmail.com wrote:
 Hi Michael,

 Last time I checked Hackage for email libraries I could find some
 basic SMTP systems but nothing very recent or robust.

 Practically every web app needs to send email, so I think that a
 robust and well maintained email package would be very useful.

 I know you have many other projects going at the minute, but if you
 had a chance to create a stand alone email package, I'd be interested
 in trying it out.

 I've been working on a web app engine that combines Heist from Snap
 and several of the WAI packages with an object store system I've
 developed myself (and will release on Hackage at some point). Email
 was a missing piece and it sounds like your package could fill the gap
 nicely.

 Kevin

 On Oct 17, 8:11 am, Michael Snoyman mich...@snoyman.com wrote:
 Hey all,

 I wrote a simple email module in Yesod[1] that handles such things as
 multipart messages and Base64 encoding. It's still missing some
 features (multipart/alternative, for instance), but it can be useful
 for throwing together emails. It's currently part of the yesod
 package, but I'm going to be moving it to a separate package to free
 me up to make breaking API changes more frequently.

 As of right now, I'm just going to move it into the yesod-auth package
 (also being split off from the main yesod package), and therefore it
 will still have all the dependencies on Yesod. My question is whether
 people would find this package useful outside the scope of Yesod.
 There are no dependencies from this module onto any Yesod-specific
 stuff, so this separation could easily be done. I just don't feel like
 adding another package to maintain if no one is interested.

 So if anyone wants this offered up as a separate package, and/or has
 any API suggestions, please let me know.

 Michael

 [1]http://hackage.haskell.org/packages/archive/yesod/0.5.4/doc/html/Yeso...
 ___
 Haskell-Cafe mailing list
 haskell-c...@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Robert Wills
Yes you're right Kevin.  I'll put up a new release sometime in the
next week with some more examples
and possible some simpler methods if only so HaskellNet can be more
easily evaluated.

As I recall Happstack also uses an smtp library.  I forget which one.

-Rob

On Sun, Oct 17, 2010 at 9:29 AM, Kevin Jardine kevinjard...@gmail.com wrote:
 Hi Robert,

 I did look at HaskellNet a few months ago.

 It looked big and undocumented so I guess I got scared away.

 What I'd be interested in is something with the simplicity of the PHP
 mail command (or perhaps the phpmailer package).

 I dislike PHP as a programming language but it does basic web
 functions like outgoing email fairly well.

 Perhaps HaskellNet just needs more documentation and examples?

 Kevin

 On Oct 17, 10:05 am, Robert Wills wrwi...@gmail.com wrote:
 Last summer I put cabalized HaskellNet (written by Jun Mukai for a
 GSOC) (http://hackage.haskell.org/package/HaskellNet)
 and uploaded it to hackage.  I put myself down as a maintainer but I
 haven't done much maintaining.

 HaskellNet also does multipart mime and base64 stuff as well as imap
 and pop access.  I haven't looked at Michael's package yet -- I'll
 have a look this morning
 to compare.

 I've been meaning to add try to tls support to HaskellNet.

 I don't have any huge attachment to HaskellNet so I'd be happy to just
 help to migrate the useful bits of it to some larger official email
 package.

 -Rob



 On Sun, Oct 17, 2010 at 8:32 AM, Kevin Jardine kevinjard...@gmail.com 
 wrote:
  Hi Michael,

  Last time I checked Hackage for email libraries I could find some
  basic SMTP systems but nothing very recent or robust.

  Practically every web app needs to send email, so I think that a
  robust and well maintained email package would be very useful.

  I know you have many other projects going at the minute, but if you
  had a chance to create a stand alone email package, I'd be interested
  in trying it out.

  I've been working on a web app engine that combines Heist from Snap
  and several of the WAI packages with an object store system I've
  developed myself (and will release on Hackage at some point). Email
  was a missing piece and it sounds like your package could fill the gap
  nicely.

  Kevin

  On Oct 17, 8:11 am, Michael Snoyman mich...@snoyman.com wrote:
  Hey all,

  I wrote a simple email module in Yesod[1] that handles such things as
  multipart messages and Base64 encoding. It's still missing some
  features (multipart/alternative, for instance), but it can be useful
  for throwing together emails. It's currently part of the yesod
  package, but I'm going to be moving it to a separate package to free
  me up to make breaking API changes more frequently.

  As of right now, I'm just going to move it into the yesod-auth package
  (also being split off from the main yesod package), and therefore it
  will still have all the dependencies on Yesod. My question is whether
  people would find this package useful outside the scope of Yesod.
  There are no dependencies from this module onto any Yesod-specific
  stuff, so this separation could easily be done. I just don't feel like
  adding another package to maintain if no one is interested.

  So if anyone wants this offered up as a separate package, and/or has
  any API suggestions, please let me know.

  Michael

  [1]http://hackage.haskell.org/packages/archive/yesod/0.5.4/doc/html/Yeso...
  ___
  Haskell-Cafe mailing list
  haskell-c...@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe
  ___
  Haskell-Cafe mailing list
  haskell-c...@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

 ___
 Haskell-Cafe mailing list
 haskell-c...@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] PDF generation?

2010-06-01 Thread Robert Wills
Last year, I was playing around with using the Hieroglyph library for pdf
creation via it's Cairo backend (which I guess amounts to the same thing as
using gtk2hs' pdf output).

http://wrwills.webfactional.com/docs/pandocHieroglyph/

You should be able to use Diagrams as well as it also has a cairo backend.
http://hackage.haskell.org/package/diagrams

-Rob

On Tue, Jun 1, 2010 at 5:15 PM, Pierre-Etienne Meunier 
pierreetienne.meun...@gmail.com wrote:

  On Tue, 1 Jun 2010, Jim Tittsler wrote:
 
  What is the easiest way to create PDF files from Haskell?  Is gtk2hs's
  PDF output the preferred way?

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Robert Wills
I use Webfaction.

http://www.webfaction.com/services/hosting

It's not a personal vps but you get ssh access and you can run any
webserver you want-- even a Haskell one:

http://wrwills.webfactional.com/2009/10/30/Haskell-on-a-Webfaction-Host

They support Postgres databases too.

It's cheaper than a vps (I'm paying $8.50 a month but you can pay as
little as $5.50), but possibly not as convenient.

-Rob

On Sun, Jan 31, 2010 at 11:05 PM, Tom Tobin korp...@korpios.com wrote:
 On Sun, Jan 31, 2010 at 3:37 PM, Michael Snoyman mich...@snoyman.com wrote:
 OK, I guess the unananimous opinion in linode ;). Thanks for the input
 everyone!

 If it helps make your client even more comfortable: not only do I use
 Linode for my personal VPS, but we use them at work to host some
 fairly popular websites.  Our sysadmin absolutely loves them to death;
 he's always raving about how easy our hosting is now since moving
 there.  :-)
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Market Place for Haskell development teams?

2009-09-30 Thread Robert Wills
fwiw I found it difficult getting a Haskell installation onto Windows.  
Packages that would 'cabal install' just fine on Linux were much more of 
a pain on Windows.  Eventually, I actually found it easiest to cross 
compile to Windows using wine:


wine HaskellPlatform-2009.2.0.2-setup.exe
wine cabal
wine cabal install yst

The resulting yst.exe seems to work fine on actual Windows machines.  
Quite cool I thought as I prefer to stay in Linux, but if you're 
starting from a Windows based development environment, Haskell does seem 
problematic.


-Rob


John A. De Goes wrote:


The cross-platform features have been extremely important to the 
success of Java, because they have greatly expanded the number of 
libraries available to developers.


On Haskell Cafe, not a week goes by that Windows (and sometimes Mac) 
developers don't complain about not being able to use some Hackage 
library because of cross-platform issues. The actual number of people 
encountering these issues is orders of magnitude larger than the 
number of posts you see here. These issues impede the growth of 
Haskell significantly.


Moreover, the importance of cross-platform libraries on the Java 
platform is evinced by the fact that developers of major native 
libraries _always_ make their libraries cross-platform (Jogl, 
jmonkeyengine, swt, etc.). They wouldn't go to this trouble if it 
weren't something the community was demanding.


From a risk management perspective, a manager really likes the ability 
to seamlessly move across platforms and architectures without 
recompilation. 32 - 64? No problem. Linux - BSD? Sure, why not? Yes, 
I'm sure even Amazon, Yahoo, and Google make these kinds of 
considerations.


Regards,

John A. De Goes
N-Brain, Inc.
The Evolution of Collaboration

http://www.n-brain.net|877-376-2724 x 101

On Sep 30, 2009, at 5:28 AM, Alberto G. Corona wrote:

Nobody consider the runtime download of Java code important nowadays. 
Not even the cross-platform features. but it was marketeed at his 
time as such.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: yst 0.2.1

2009-08-03 Thread Robert Wills
I had a play with this yesterday and thought it looked very useful (like 
all of John MacFarlane's tools).  I'm probably going to use it for a 
site I'm working on.


-Rob
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Android and Haskell

2009-06-17 Thread Robert Wills
Right now you're best bet if you want to program Android in a functional 
style is to use Scala which has an Android target.





___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
  


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskellnet

2009-05-22 Thread Robert Wills
I tried contacting Jun Mukai at the email address given in the package
but I haven't heard a reply. Just to get this out of the way I've put
my darcs repository with the changes I've made up on my website. It
should build and install with:

darcs get http://www.dicta.org.uk/website/website/haskellnet
cabal configure
cabal build
cabal install

I've added some examples of using smtp, pop3 and imap to the examples
directory. They seem to work against the mail servers that I have
access to. I've also removed some modules from haskellnet which are
now covered elswhere in hackage: eg. http, browser, json

I'll put in a request to get a username on hackage so I can upload
it-- unless anyone has any objections.

-Rob



On Thu, May 14, 2009 at 2:37 PM, Neil Mitchell ndmitch...@gmail.com wrote:
 Hi

 Email the original author, if you can. Ideally work with them to
 upload a working version to hackage. If they're not interested
 hopefully they'll make you the new maintainer. If you can't contact
 them, just upload a new version anyway - as long as it's done for the
 benefit of the community and not with malicious intent, everyone is
 happy.

 And please do make sure you upload something working, I imagine this
 will be very useful to lots of people!

 Thanks for your efforts

 Neil

 On Thu, May 14, 2009 at 12:51 PM, Robert Wills wrwi...@gmail.com wrote:
 Hello,

 Yesterday I found myself wanting to clear out a spam-ridden pop
 account without downloading all the messages. Rather than just using
 Python's poplib, I thought I might look for a haskell solution and
 came across Haskellnet:
 http://darcs.haskell.org/SoC/haskellnet/

 I ended up spending much of the afternoon getting it to compile and
 much of last night trying to get the pop library to actually work (the
 'strip' method produced exceptions).  It was a good learning
 experience (this was helpful:
 http://donsbot.wordpress.com/2007/11/14/no-more-exceptions-debugging-haskell-code-with-ghci/).

 I'm writing here because I'm wondering whether it would be worthwhile
 putting it up on hackage? From searching this list, there seem to have
 been a few times when people have stumbled across it but got
 frustrated when it didn't compile.  If so, what's the protocol? Is the
 original author, Jun Mukai, still around?

 Thanks,
 Rob
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Functional Reactive Web Application Framework?

2009-05-14 Thread Robert Wills
Yes, I didn't realise that until Arjun mentioned that.  I'm going to
try to find some time to look more closely at Flapjax...

-Rob

On Wed, May 13, 2009 at 11:30 PM, Don Stewart d...@galois.com wrote:
 wrwills:
 The  only web-oriented frp framework that I know of is Flapjax
 http://www.flapjax-lang.org/

 Flapjax is javascript so possibly there could be a way to integrate it
 into Haskell using HJavascript?  Maybe it could even be integrated
 into Happstack?

 I'm also quite new to Haskell.

 Isn't the flapjax compiler implemented in Haskell?

 -- Don

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] haskellnet

2009-05-14 Thread Robert Wills
Hello,

Yesterday I found myself wanting to clear out a spam-ridden pop
account without downloading all the messages. Rather than just using
Python's poplib, I thought I might look for a haskell solution and
came across Haskellnet:
http://darcs.haskell.org/SoC/haskellnet/

I ended up spending much of the afternoon getting it to compile and
much of last night trying to get the pop library to actually work (the
'strip' method produced exceptions).  It was a good learning
experience (this was helpful:
http://donsbot.wordpress.com/2007/11/14/no-more-exceptions-debugging-haskell-code-with-ghci/).

I'm writing here because I'm wondering whether it would be worthwhile
putting it up on hackage? From searching this list, there seem to have
been a few times when people have stumbled across it but got
frustrated when it didn't compile.  If so, what's the protocol? Is the
original author, Jun Mukai, still around?

Thanks,
Rob
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Functional Reactive Web Application Framework?

2009-05-13 Thread Robert Wills
The  only web-oriented frp framework that I know of is Flapjax
http://www.flapjax-lang.org/

Flapjax is javascript so possibly there could be a way to integrate it
into Haskell using HJavascript?  Maybe it could even be integrated
into Happstack?

I'm also quite new to Haskell.

-Rob
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskell facebook

2008-10-19 Thread Robert Wills

I don't know much about this, but...

http://hackage.haskell.org/packages/archive/HAppS-Server/0.9.2.1/doc/html/HAppS-Server-Facebook.html

As I recall, Alex Jacobson's talk contained an example of building a 
facebook app.


http://www.bayfp.org/blog/2007/10/16/alex-jacobson-on-happs-videos-slides/

-Rob

Jason Dusek wrote:

  Has anyone taken a stab at Haskell FaceBook bindings?

--
_jsn
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

  


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Wumpus World

2008-03-27 Thread Robert Wills

This might also be relevant:
http://web.engr.oregonstate.edu/~erwig/zurg/


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe