Send Beginners mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Re: Cygwin error: D:\Haskell\bin/windres:    can't open
      temporary file `\/cca02652.irc': No such file or directory
      (Stephen Tetley)
   2. Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 = errors
      (Sergey Mironov)
   3. Re: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 =
      errors (Daniel Fischer)
   4. Re: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 =
      errors (Chadda? Fouch?)
   5. Re: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 =
      errors (Chadda? Fouch?)
   6. Re: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 =
      errors (Sergey Mironov)
   7.  overflow safe Word types (Ashish Agarwal)
   8.  Earth Hour 2010: Will you join me? (Ivan Vovnenko)
   9. Re:  overflow safe Word types (Antoine Latter)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Mar 2010 08:30:35 +0000
From: Stephen Tetley <[email protected]>
Subject: Re: [Haskell-beginners] Re: Cygwin error:
        D:\Haskell\bin/windres:         can't open temporary file 
`\/cca02652.irc':
        No such file or directory
To: remy willems <[email protected]>
Cc: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Hi Remy

Directory is shipped with GHC - so if you are working with GHC you wil
have it already - it provides the module System.Directory.


Best wishes

Stephen


------------------------------

Message: 2
Date: Fri, 26 Mar 2010 12:30:06 +0300
From: Sergey Mironov <[email protected]>
Subject: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 = errors
To: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=KOI8-R

Thanks, Robert. But my real goal was to compile happstack. SMTPClient
is just a dependency.

I solved the problem with ghc-pkg unregister:

ier...@vault ~ % ghc-pkg unregister hsemail-1.6
ier...@vault ~ % cabal install hsemail-1.3
ier...@vault ~ % caball install SMTPClient

2010/3/26 Robert Wills <[email protected]>:
> HaskellNet contains an smtp client as well.
>
> http://hackage.haskell.org/package/HaskellNet
>
> It worked last time I checked.
>
> main = do
> šcon <- connectSMTP smtpServer
> šlet msg = ([("From", "HaskellNet <" ++ sendFrom ++
> ">"),("Subject","Test")], BS.pack "\r\nhello from haskellnet")
> šsendMail sendFrom sendTo (BS.pack $ show $ showMessage "utf-8" msg) con
> šcloseSMTP con
>
> Regards,
> Rob
>
> On Thu, Mar 25, 2010 at 11:34 PM, Sergey Mironov <[email protected]> wrote:
>> Hi.
>> I was trying to install šSMTPClient-1.0.1
>>
>> Compiler reported me:
>>
>> ier...@vault SMTPClient-1.0.1 % cabal build
>> Preprocessing library SMTPClient-1.0.1...
>> Building SMTPClient-1.0.1...
>> [1 of 2] Compiling Network.SMTP.ClientSession (
>> Network/SMTP/ClientSession.hs, dist/build/Network/SMTP/ClientSession.o
>> )
>>
>> Network/SMTP/ClientSession.hs:242:16:
>> š šNot in scope: data constructor `Message'
>>
>> Network/SMTP/ClientSession.hs:406:15:
>> š šNot in scope: data constructor `Message'
>>
>> I've made some digging: Seems that newest version of 'hsemail' (1.6)
>> breaks backward compatibility (SMTPClient depends on it)
>>
>> My questions:
>> 1) Where should i send bugreport to?
>> There are no emails on http://hackage.haskell.org/package/SMTPClient
>> so i don't know how to contact maintainers.
>>
>> 2) How to fallback hsemail?
>> i tried:
>>
>> ier...@vault ~ % cabal install hsemail-1.3 š# šgood, i suppose
>> ier...@vault ~ % ghc-pkg hide hsemail-1.6 # Bad one
>> ier...@vault ~ % caball install -v SMTPClient
>> ...
>> ... bla-bla ...
>> ...
>> selecting hsemail-1.6 (installed or hackage) and discarding hsemail-1.0, 1.1,
>> 1.2, 1.3, 1.4 and 1.5
>> ...
>>
>> Looks like hiding a package is not a case for me.
>>
>> ps
>>
>> I am using ghc-6.12
>>
>> --
>> Thanks,
>> Sergey
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>



--
ó õ×ÁÖÅÎÉÅÍ,
óÅÒÇÅÊ.



-- 
ó õ×ÁÖÅÎÉÅÍ,
óÅÒÇÅÊ.


------------------------------

Message: 3
Date: Fri, 26 Mar 2010 12:42:36 +0100 (CET)
From: Daniel Fischer <[email protected]>
Subject: Re: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 =
        errors
To: [email protected], Sergey Mironov <[email protected]>
Message-ID: <19300296.307981.1269603756775.javamail.fm...@mwmweb055>
Content-Type: text/plain; charset=UTF-8

-----Urspr?ngliche Nachricht-----
Von: Sergey Mironov 
Gesendet: 26.03.2010 10:30:06
An: [email protected]
Betreff: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 = errors

>Thanks, Robert. But my real goal was to compile happstack. SMTPClient
>is just a dependency.
>
>I solved the problem with ghc-pkg unregister:
>
>ier...@vault ~ % ghc-pkg unregister hsemail-1.6
>ier...@vault ~ % cabal install hsemail-1.3
>ier...@vault ~ % caball install SMTPClient
>

You can also cabal-install with constraints. I don't remember the command-line 
syntax,
I think it was something like

cabal install 'constraint hsemail < 1.6' SMTPClient

cabal install --help

should tell you how exactly it ought to look. Sometimes unregistering the 
offending package is not an option because other packages depend on it.


------------------------------

Message: 4
Date: Fri, 26 Mar 2010 13:24:32 +0100
From: Chadda? Fouch? <[email protected]>
Subject: Re: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 =
        errors
To: Daniel Fischer <[email protected]>
Cc: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=UTF-8

On Fri, Mar 26, 2010 at 12:42 PM, Daniel Fischer
<[email protected]> wrote:
> -----Urspr?ngliche Nachricht-----

> You can also cabal-install with constraints. I don't remember the 
> command-line syntax,
> I think it was something like
>
> cabal install 'constraint hsemail < 1.6' SMTPClient

cabal install --contraint=hsemail<1.6 SMTPClient

It's arguably the best (and easiest) thing to do if you don't wish to
wait for a new version of SMTPClient with updated constraints or
adapted to the change in hsemail.

-- 
Jedaï


------------------------------

Message: 5
Date: Fri, 26 Mar 2010 13:27:23 +0100
From: Chadda? Fouch? <[email protected]>
Subject: Re: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 =
        errors
To: Daniel Fischer <[email protected]>
Cc: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=UTF-8

On Fri, Mar 26, 2010 at 1:24 PM, Chaddaï Fouché
<[email protected]> wrote:
> On Fri, Mar 26, 2010 at 12:42 PM, Daniel Fischer
> <[email protected]> wrote:
>> -----Urspr?ngliche Nachricht-----
>
>> You can also cabal-install with constraints. I don't remember the 
>> command-line syntax,
>> I think it was something like
>>
>> cabal install 'constraint hsemail < 1.6' SMTPClient
>
> cabal install --contraint=hsemail<1.6 SMTPClient
>
> It's arguably the best (and easiest) thing to do if you don't wish to
> wait for a new version of SMTPClient with updated constraints or
> adapted to the change in hsemail.
>
> --
> Jedaï
>

cabal install --constraint='hsemail < 1.6' SMTPClient


------------------------------

Message: 6
Date: Fri, 26 Mar 2010 20:24:17 +0300
From: Sergey Mironov <[email protected]>
Subject: Re: Fwd: [Haskell-beginners] SMTPClient + hsemail-1.6 =
        errors
To: Chadda? Fouch? <[email protected]>
Cc: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

2010/3/26 Chaddaï Fouché <[email protected]>:
> On Fri, Mar 26, 2010 at 12:42 PM, Daniel Fischer
> <[email protected]> wrote:
>> -----Urspr?ngliche Nachricht-----
>
>> You can also cabal-install with constraints. I don't remember the 
>> command-line syntax,
>> I think it was something like
>>
>> cabal install 'constraint hsemail < 1.6' SMTPClient
>
> cabal install --contraint=hsemail<1.6 SMTPClient
>
> It's arguably the best (and easiest) thing to do if you don't wish to
> wait for a new version of SMTPClient with updated constraints or
> adapted to the change in hsemail.
>
> --
> Jedaï
>

> cabal install --contraint=hsemail<1.6 SMTPClient

Really nice looking. Thanks, people!

-- 
Thanks,
Sergey


------------------------------

Message: 7
Date: Fri, 26 Mar 2010 14:23:25 -0400
From: Ashish Agarwal <[email protected]>
Subject: [Haskell-beginners] overflow safe Word types
To: Haskell-beginners <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Is there an alternative implementation of the types Word8, Word16, etc. that
disallow overflow? For example, currently:

Prelude Word> (fromInteger 256) :: Word8
0

I'd like a type whose constructors disallow this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20100326/ed26a9e2/attachment-0001.html

------------------------------

Message: 8
Date: Fri, 26 Mar 2010 17:47:37 -0700 (PDT)
From: Ivan Vovnenko <[email protected]>
Subject: [Haskell-beginners] Earth Hour 2010: Will you join me?
To: [email protected]
Message-ID: <[email protected]>

[email protected],

I just signed up to support the Earth Hour 2010 campaign and I'd like to invite 
you to join me. Just visit https://www.myearthhour.org/home?invite=KozdEiQpor.

Earth Hour was conceived by the World Wildlife Fund, and represents the global 
call to action on climate change. The more people that pledge to turn off their 
lights for Earth Hour, the more influence we will have. Nearly one billion 
people around the world turned off their lights for Earth Hour 2009 and we can 
help make the next one even bigger.

Through the flick of a light switch on March 27 at 8:30 pm local time, we'll be 
casting our vote for action on one of the most pressing issues facing our 
planet, sending a message to our local, national, and global leaders that the 
time to act is now.

Follow this link to learn more and sign-up yourself. 
https://www.myearthhour.org/home?invite=KozdEiQpor 

----------------


-Ivan Vovnenko
----------------




------------------------------

Message: 9
Date: Fri, 26 Mar 2010 21:51:12 -0500
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] overflow safe Word types
To: Ashish Agarwal <[email protected]>
Cc: Haskell-beginners <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=UTF-8

On Fri, Mar 26, 2010 at 1:23 PM, Ashish Agarwal <[email protected]> wrote:
> Is there an alternative implementation of the types Word8, Word16, etc. that
> disallow overflow? For example, currently:
> Prelude Word> (fromInteger 256) :: Word8
> 0
> I'd like a type whose constructors disallow this.

In a way. There's this:

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

Which provides replacements for all of the Word/Int types, except it
always errors on overflow.

It's not intended for production use, as it adds quite a bit of
overhead to evaluation.

In retrospect, I'm not sure why I didn't use Control.Exception.assert.

Antoine


------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 21, Issue 28
*****************************************

Reply via email to