missing mtl (which exists) when installing filemanip package

2013-01-10 Thread HP Wei
I did the following: download filemanip-0.3.6.2.tar.gz tar xvf ... cd filemanip-0.3.6.2 runhaskell Setup configure --prefix=$HOME/ghc -- it tells me Setup: At least the following dependencies are missing: mtl -any, unix-compat -any So, I did the following: download

Network.HaskellNet.IMAP over SSL connection

2011-06-29 Thread HP Wei
I tried to use Network.HaskellNet.IMAP to read emails and failed: user error (NO: Plaintext authentication disallowed on non-secure (SSL/TLS) connections.) Any solution for reading emails over SSL connection ?? thanks HP ___ Glasgow-haskell-users

how do I abstract this pattern ?

2008-05-21 Thread HP Wei
Suppose p1, p2, p3 are 3 predicates that take an input -- say, a String. They return either (True, result) or False. I want to get an effect like in this expression: case p1 s of (True, r) - r False - case p2 s of (True, r) - r False - case

ghc compiler --- ld -R ?

2008-05-21 Thread HP Wei
In the linker ld, there is a -R option to encode lib-search-directories into the object file. Can we not do that in compiling this ghc -o foo --make foo.hs ??? Thanks HP ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Re: how do I abstract this pattern ?

2008-05-21 Thread HP Wei
with some higher order foldx-like functions. Thanks a lot, --hp On Wed, 21 May 2008, HP Wei wrote: Suppose p1, p2, p3 are 3 predicates that take an input -- say, a String. They return either (True, result) or False. I want to get an effect like in this expression: case p1 s

6.6.1 vs 6.8.2 --- Re: large binary footprint ?

2008-05-07 Thread HP Wei
? Is it a specific platform dependent issue --- i.e. does it occur on linux machines ?? --hp On Tue, 6 May 2008, HP Wei wrote: machine: Sun Sparc, with SunOS 5.10 ghc version --- 6.8.2 [ solaris-binaries downloaded from ghc site ] The Question: I compiled the code: putStr Hello World!\n

problem with concurrent port scanner

2008-05-07 Thread HP Wei
I cut and paste the code from http://blog.moertel.com/articles/2004/03/13/concurrent-port-scanner-in-haskell And compiled the resulting portscan.hs with both ghc-6.8.2 and ghc-6.6.1 on a host with Sun-Sparc [SunOS 5.10]. Besides the issue of binary-code-size blow-up with ghc-6.8.2, there is a

large binary footprint ?

2008-05-06 Thread HP Wei
machine: Sun Sparc, with SunOS 5.10 ghc version --- 6.8.2 [ solaris-binaries downloaded from ghc site ] The Question: I compiled the code: putStr Hello World!\n ghc -o hello -L../lib hello.hs where ../lib contains the libgmp.so The resulting binary code size is 3.9 Mbytes I had

Re: large binary footprint ?

2008-05-06 Thread HP Wei
hi Bulat, thanks for the speedy reply! I tried the following two ways and got the same result: (1) in the shell, strip hello (2) ghc -optl-s -o hello -L../lib hello.hs They both result in a binary size of ~2.5MBytes, which is about 5 times what I expected (500kbytes). Have I