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. Re:  Can I upload file using http-enumerator,     hxt?
      (Krzysztof Skrz?tnicki)
   2.  error (Andy Larocque)


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

Message: 1
Date: Fri, 13 Jan 2012 21:36:59 +0100
From: Krzysztof Skrz?tnicki <gte...@gmail.com>
Subject: Re: [Haskell-beginners] Can I upload file using
        http-enumerator,        hxt?
To: ??????? ??? <leon.v.niki...@pravmail.ru>
Cc: beginners@haskell.org
Message-ID:
        <CAM7aEVHqu9aaLtLuhQE8GbMNt6=QWW-=r7dxcdnxxzo_0g6...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Generally you can download a file by using GET request and upload it with
POST request. See urlEncodedBody in http-enumerator:
http://hackage.haskell.org/packages/archive/http-enumerator/0.7.2.3/doc/html/Network-HTTP-Enumerator.html#v:urlEncodedBody

Best regards,
Krzysztof Skrz?tnicki

2012/1/13 ??????? ??? <leon.v.niki...@pravmail.ru>

> Hello.
>
> Can I upload file using http-enumerator, hxt?
>
> What best way to take a html page from one server, maybe make some
> transformation of this html and upload it (transformed) to other server?
>
> I can use hxt to download file and to do some transformation. But how can
> I upload it to other server?
>
> _______________________________________________
> 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/20120113/55283a10/attachment-0001.htm>

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

Message: 2
Date: Fri, 13 Jan 2012 23:18:39 -0500
From: Andy Larocque <abla...@gmail.com>
Subject: [Haskell-beginners] error
To: Begginers Help Haskell <beginners@haskell.org>
Message-ID:
        <CAD2LBsihbhXKiJi=YfVz2QyGnp6QgbUank9=sm5wqrvkilk...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I've been trying to run this ( paint.hs) program ,shown below, in ghci   -
but I get this error I don't know how to correct :

Loading package wxcore-0.13.2 ... can't load .so/.DLL for: stdc++
(libstdc++.so: cannot open shared object file: No such file or directory)

Does anyone know the fix for it? ( I got the same thing with the other
sample programs for wxHaskell)
---------------------------------------------------------------------------------
module Main where

import Graphics.UI.WXCore
import Graphics.UI.WX

main :: IO ()
main
  = start gui

gui :: IO ()
gui
  = do f  <- frame [text := "Paint demo", fullRepaintOnResize := False]
       sw <- scrolledWindow f [ on paint := onpaint
                              , virtualSize := sz 500 500, scrollRate := sz
10 10
                              , fullRepaintOnResize := False]
       set f [clientSize := sz 150 150, layout := fill $ widget sw]
       return ()
  where
    onpaint dc viewArea
      = do circle dc (pt 200 200) 20 [penKind := PenDash DashDot]
           arc dc (pt 100 100) 20 90 230 [color := red, penWidth :~ (+1),
penKind := PenSolid]
           ellipticArc dc (rect  (pt 20  20) (sz 60 30)) 90 230 [color :=
blue, penWidth :~ (*2)]
           c <- get dc color
           -- set dc [font := fontDefault{ fontFace = "Courier New",
fontSize = 16, fontWeight = WeightBold }]
           set dc [fontFace := "Courier New", fontSize := 16, fontWeight :=
WeightBold ]
           drawText dc (show c) (pt 50 50) []
           rotatedText dc "rotated text" (pt 80 160) 45 [textColor := green]
----------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20120113/5f3af6c3/attachment-0001.htm>

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

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 43, Issue 18
*****************************************

Reply via email to