Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. How to avoid Gmail attachments? ("An HTML attachment was scrubbed") (Peter Schmitz) 2. run another program from within haskell program (prad) 3. Re: Re: Boilerplate Code (Christian Maeder) 4. Re: run another program from within haskell program (matthew coolbeth) 5. Re: Boilerplate Code (Matt Andrew) 6. Re: Boilerplate Code (Brent Yorgey) 7. Re: How to avoid Gmail attachments? ("An HTML attachment was scrubbed") (Amy de Buitl?ir) 8. Re: How to avoid Gmail attachments? ("An HTML attachment was scrubbed") (Ozgur Akgun) 9. Re: Yezod and Snap deployments to ISP (Toby Thain) ---------------------------------------------------------------------- Message: 1 Date: Tue, 3 Aug 2010 19:29:10 -0700 From: Peter Schmitz <ps.hask...@gmail.com> Subject: [Haskell-beginners] How to avoid Gmail attachments? ("An HTML attachment was scrubbed") To: Haskell Beginners <beginners@haskell.org> Message-ID: <aanlktikv5svjdw8+lbuymcqu246mow=yprbdw=2wx...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" I see that when I post to the Haskell lists ( http://www.haskell.org/mailman/listinfo) from gmail, the end of my post has: "-------------- next part -------------- An HTML attachment was scrubbed... URL: ..." The url seems to be a copy of my mail. I can't seem to find the appropriate setting in gmail to avoid this. (Or is it one of the mailing list settings a subscriber can adjust?) Can someone offer a tip? Thanks much, -- Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/beginners/attachments/20100803/bca8fce4/attachment-0001.html ------------------------------ Message: 2 Date: Wed, 4 Aug 2010 00:10:02 -0700 From: prad <p...@towardsfreedom.com> Subject: [Haskell-beginners] run another program from within haskell program To: haskellbeginners <beginners@haskell.org> Message-ID: <20100804001002.62f5f...@gom> Content-Type: text/plain; charset=US-ASCII i have downloaded data from postgresql into a file my haskell program. i can of course edit this file with say vim. can i run vim on that file from within haskell and after quiting vim have control returned to my haskell program? the situation is like calling vim to edit my claws-mail emails instead of using the native editor. after editing, i quit the external editor and am returned to the native editor. -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ------------------------------ Message: 3 Date: Wed, 04 Aug 2010 10:09:47 +0200 From: Christian Maeder <christian.mae...@dfki.de> Subject: Re: [Haskell-beginners] Re: Boilerplate Code To: Matt Andrew <mjsa...@gmail.com> Cc: beginners@haskell.org, Kyle Murphy <orc...@gmail.com> Message-ID: <4c59204b.9010...@dfki.de> Content-Type: text/plain; charset=UTF-8 Kyle Murphy schrieb: [...] > typeChecker a b = toConstr a == toConstr b Right, that is (slightly) cleaner than using my "show" trick below. > On Tue, Aug 3, 2010 at 13:51, Alex Rozenshteyn > <rpglove...@gmail.com <mailto:rpglove...@gmail.com>> wrote: > > That is a dirty, dirty hack. [...] Alternatively you could define your own enumeration type: data SchemeType = NumberT | BoolT | AtomT deriving Eq schemeTypeOf :: SchemeVal -> SchemeType schemeTypeOf v = case v of Number _ -> NumberT Bool _ -> BoolT Atom _ -> AtomT typeChecker = Data.Function.on (==) schemeTypeOf C. > > > > numberP :: SchemeVal -> SchemeVal > > numberP (Number _) = Bool True > > numberP _ = Bool False > > > > boolP :: SchemeVal -> SchemeVal > > boolP (Bool _) = Bool True > > boolP _ = Bool False > > > > symbolP :: SchemeVal -> SchemeVal > > symbolP (Atom _) = Bool True > > symbolP _ = Bool False [...] > typeChecker s1 s2 = let f = takeWhile isAlphaNum > . show in > Bool $ f s1 == f s2 > > hoping that my "f" just extracts the constructor > as string. ------------------------------ Message: 4 Date: Wed, 4 Aug 2010 07:15:48 -0400 From: matthew coolbeth <mac01...@engr.uconn.edu> Subject: Re: [Haskell-beginners] run another program from within haskell program To: prad <p...@towardsfreedom.com> Cc: haskellbeginners <beginners@haskell.org> Message-ID: <aanlktikmykylptmxm-mzmt4v5c1wrhc=gk-sxcznc...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I've never tried, but this blog post seems to do the right thing: http://therning.org/magnus/archives/727 On Wed, Aug 4, 2010 at 03:10, prad <p...@towardsfreedom.com> wrote: > i have downloaded data from postgresql into a file my haskell program. > i can of course edit this file with say vim. > > can i run vim on that file from within haskell and after quiting vim > have control returned to my haskell program? > > the situation is like calling vim to edit my claws-mail emails instead > of using the native editor. after editing, i quit the external editor > and am returned to the native editor. > > -- > In friendship, > prad > > ... with you on your journey > Towards Freedom > http://www.towardsfreedom.com (website) > Information, Inspiration, Imagination - truly a site for soaring I's > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > -- mac -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/beginners/attachments/20100804/3b6e11d1/attachment-0001.html ------------------------------ Message: 5 Date: Wed, 04 Aug 2010 22:23:42 +1000 From: Matt Andrew <mjsa...@gmail.com> Subject: Re: [Haskell-beginners] Boilerplate Code To: beginners <beginners@haskell.org> Message-ID: <8762zqy3ap.wl%mjsa...@gmail.com> Content-Type: text/plain; charset=US-ASCII Hi all, Thanks for the many replies. I have been looking at the Template Hakell route (thanks Brent). It looks like it's going to take a bit to figure out how to use it properly (a lot of the tutorials/docs seem a little out of date?), but should do the trick once I do. Thanks again to everyone for their replies. Matt ------------------------------ Message: 6 Date: Wed, 4 Aug 2010 14:29:23 +0100 From: Brent Yorgey <byor...@seas.upenn.edu> Subject: Re: [Haskell-beginners] Boilerplate Code To: beginners@haskell.org Message-ID: <20100804132923.ga5...@seas.upenn.edu> Content-Type: text/plain; charset=us-ascii On Wed, Aug 04, 2010 at 10:23:42PM +1000, Matt Andrew wrote: > Hi all, > > Thanks for the many replies. I have been looking at the Template Hakell route > (thanks Brent). It looks like it's going to take a bit to figure out how to > use it properly (a lot of the tutorials/docs seem a little out of date?), but > should do the trick once I do. Yes, unfortunately, the available tutorials/docs on Template Haskell leave a bit to be desired. Just keep playing around with it, and you'll pick it up relatively quickly. -Brent ------------------------------ Message: 7 Date: Wed, 4 Aug 2010 15:17:31 +0100 From: Amy de Buitl?ir <a...@nualeargais.ie> Subject: Re: [Haskell-beginners] How to avoid Gmail attachments? ("An HTML attachment was scrubbed") To: Peter Schmitz <ps.hask...@gmail.com> Cc: Haskell Beginners <beginners@haskell.org> Message-ID: <aanlktink-2ktk3zihktuvkj8d9inz3d_uk7mnq+op...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 > "-------------- next part -------------- > An HTML attachment was scrubbed... > URL: ..." > > The url seems to be a copy of my mail. In gmail, on the toolbar right above the message, there's a button for "plain text". I think that will do the trick. If you don't see "plain text", but you see "rich formatting", then you're already in plain text mode. When you're replying to messages from the mailing list, you'll be in plain text mode by default. It's only when you start a new message that you need to do this. ------------------------------ Message: 8 Date: Wed, 4 Aug 2010 15:26:37 +0100 From: Ozgur Akgun <ozgurak...@gmail.com> Subject: Re: [Haskell-beginners] How to avoid Gmail attachments? ("An HTML attachment was scrubbed") To: Amy de Buitl?ir <a...@nualeargais.ie> Cc: Haskell Beginners <beginners@haskell.org> Message-ID: <aanlkti=kctfb_gk7bgayl3yumev-pcupobqsmda=e...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" On 4 August 2010 15:17, Amy de Buitléir <a...@nualeargais.ie> wrote: > When you're replying to messages from the mailing list, > you'll be in plain text mode by default. > Not very important but, I don't think this is the case. At least not for me. Cheers, Ozgur -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/beginners/attachments/20100804/91eaab63/attachment-0001.html ------------------------------ Message: 9 Date: Wed, 4 Aug 2010 10:50:17 -0400 From: Toby Thain <t...@telegraphics.com.au> Subject: Re: [Haskell-beginners] Yezod and Snap deployments to ISP To: Kyle Murphy <orc...@gmail.com> Cc: MH <mha...@gmail.com>, beginners@haskell.org Message-ID: <841aff36-db29-411c-a9c6-9236b7be3...@telegraphics.com.au> Content-Type: text/plain; charset="us-ascii" On 3-Aug-10, at 2:11 PM, Kyle Murphy wrote: > Your choice of ISP will always determine your choice of language/ > framework, and vice versa. Most cheap ISPs only support a limited > subset of languages and/or frameworks, typically ASP.NET, PHP, or > Java. Some ISPs will also dictate other choices, such as using a > particular web server (Apache, Tomcat, IIS, etc.), or a particular > DB such as MySQL, MS SQL, or PosgreSQL. On the more expensive end of > choices you have dedicated servers or private virtual servers, where > you have complete control over what you run and it's up to you to > configure the services you want. The downside to private virtual > servers is that they typically have fairly strict resources limits, > such as 300M of RAM, or 5G of storage. Finally, the most expensive > option is a co-location facility that will plug your server into > their network and provide you backbone access, but which allows you > to not only control what software you run, but also the hardware > that it runs on. > > At this time, I know of no ISP that directly supports Haskell, in > particular Happs, Yesod, or Snap, so if you want to run any of those > you'll have to go with a dedicated server, or a virtual server. As > for sending e-mail, and language should be able to send e-mail if > you have a properly configured mail server that it can connect to, > but the details of how to configure that are a bit much to put into > an e-mail. > > If you want to play around with Yesod, I and a couple other people > are using slicehost to run various Haskell based webapps (under a > variety of frameworks), but be aware that it's more expensive than a > lot of cheap hosts (~$20 a month for a basic server with 256M of > RAM), and you'll be responsible for administering your own server, > as well as having to work within the limited resources provided. Other than slicehost, here are some more VPS hosting options, in USA. http://www.hostgator.com/ http://mediatemple.net/webhosting/ http://www.gandi.net/ http://www.webfaction.com/ http://linode.com/ http://laughingsquid.us/ http://aws.amazon.com/ec2/ http://www.rackspace.com/ Comparison chart (June 2010): http://advogato.org/person/etbe/diary/792.html --Toby > > -R. Kyle Murphy > -- > Curiosity was framed, Ignorance killed the cat. > > > On Tue, Aug 3, 2010 at 12:48, MH <mha...@gmail.com> wrote: > I want to build a website using haskell and deploy it to some ISP. I > appreciate if you help me understand the following: > 1. Do I need to consider using special ISP to deploy Yezod or Snap? > 2. Do I need to consider using special ISP to deploy any other > Haskell based web app? > 3. To start with I need to display a static content and ability to > send email from user submitted form. Can I send email with these Web > frameworks (I would appreciate the samples)? > 4. Can you recommend me any ISP in USA? > > Thanks a lot. > > Malik > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/beginners/attachments/20100804/02ffa51c/attachment.html ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 26, Issue 8 ****************************************