Re: [Haskell-cafe] Re: Re: Language support for imperative code. Was: Re: monad subexpressions

2007-08-13 Thread Donn Cave
. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] New slogan for haskell.org

2007-10-05 Thread Donn Cave
to defeat this false recognition, that should help a lot. Or maybe that's good too, for more survivor self selection. Maybe a good slogan would be `like LISP, but with strong static typing!' Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe

Re: [Haskell-cafe] New slogan for haskell.org

2007-10-11 Thread Donn Cave
. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Bug in runInteractiveProcess?

2007-10-16 Thread Donn Cave
the way to go, if closing fds. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Bug in runInteractiveProcess?

2007-10-16 Thread Donn Cave
/date False [] Nothing tr = executeFile /usr/bin/tr False [[A-Z], [a-z]] Nothing There's probably a nice way to wrap that up, so you're not keeping track of the file descriptors for all the pipes. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe

Re: [Haskell-cafe] Re: Bug in runInteractiveProcess?

2007-10-16 Thread Donn Cave
On Oct 16, 2007, at 9:52 PM, Brandon S. Allbery KF8NH wrote: On Oct 17, 2007, at 0:39 , Donn Cave wrote: ... As for closing file descriptors explicitly - if I remember right what I've seen in the NetBSD source, the UNIX popen() implementation may years ago have closed all file descriptors

Re: [Haskell-cafe] Re: Bug in runInteractiveProcess?

2007-10-17 Thread Donn Cave
hand, erred toward the permissive/promiscuous, cf. your NetBSD source comparison.) My source observations may have been ambiguous. Old NetBSD popen closed all fds, current NetBSD popen closes only popen fds. Donn Cave, [EMAIL PROTECTED

[Haskell-cafe] Re: Bug in runInteractiveProcess?

2007-10-17 Thread Donn Cave
implementation issue. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Bug in runInteractiveProcess?

2007-10-18 Thread Donn Cave
system in its antique way, and UNIX (et al.) is built around it on a big scale. It isn't going away. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] FP design

2007-11-07 Thread Donn Cave
my I/O functions are parameters to the open or init function, and the IMAP functions take over from there. In a more pure functional oriented model, could it be an extended API that exposes the IMAP functionality as operations on data, and leaves it to me to deal with the I/O? Donn Cave

Re: [Haskell-cafe] FP design

2007-11-07 Thread Donn Cave
control over the wire, that might give you a thinner API, and fewer problems to solve via typeclass. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Why are OCaml and Haskell being used at these companies?

2007-11-12 Thread Donn Cave
. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] IO is a bad example for Monads

2007-12-10 Thread Donn Cave
of earth by feasting on air and sunlight only. Donn Cave ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Execution of external command

2007-12-13 Thread Donn Cave
redirection in the command, script params 21.) I imagine it would be easy enough to create the pipes to use with runProcess, but don't know how portable this would be outside the UNIX / POSIX world. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe

Re: [Haskell-cafe] Re: Re: Re: Re[2]: Wikipedia on first-class object

2007-12-30 Thread Donn Cave
the functional understanding of Chinese is intelligence or not, but the man inside is huge, stinking red herring. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] are forkIO threads event-driven?

2010-05-01 Thread Donn Cave
processes (or threads) might be the only sane way to go. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Haskell and scripting

2010-05-06 Thread Donn Cave
about whether operations on that variable are global in effect. I'm guessing this would turn out clearer in Haskell, along with other things having to do with variables. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] executeFile failing on macosx

2010-05-18 Thread Donn Cave
spawned by the application. Where would this be documented? thanks, Donn Cave, d...@avvanta.com On Mon, May 17, 2010 at 9:41 AM, Thomas Schilling nomin...@googlemail.comwrote: Works fine on 10.6.3. If you run with +RTS -N2, though, you'll get forking not supported with +RTS -Nn

Re: [Haskell-cafe] Why Either = Left | Right instead of something like Result = Success | Failure

2010-05-28 Thread Donn Cave
have to comprehend if I read your code, and it might indeed be easier to read code that uses a type that, though unique to the code, has names that reflect its meaning. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Why Either = Left | Right instead of something like Result = Success | Failure

2010-05-28 Thread Donn Cave
for Control.Monad.Error, is mistaken, where at the top it says Example type: Either String a ... which should be Either Error a ... ? Though I can't really be sure what the documentation is trying to say.) Donn Cave, d...@avvanta.com ___ Haskell

Re: [Haskell-cafe] hGetContents: resource exhausted

2010-07-26 Thread Donn Cave
. The utility for this varies by platform, but e.g. strace or ktrace. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] hGetContents: resource exhausted

2010-07-28 Thread Donn Cave
configure It shouldn't make any difference on its own, but then you can try options on the compile, like ghc -threaded, and runtime flags like Setup +RTS -V0 -RTS I suggest that because it cuts down on signal interrupts from the runtime, and your symptoms suggest a signal interrupt. Donn

Re: [Haskell-cafe] Why do unsafe foreign calls block other threads?

2010-08-03 Thread Donn Cave
broken at this point - need to disable RTS timer signals ( -V0 ) to survive externally generated thread dispatch events.) thanks, Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] type dependency

2006-07-10 Thread Donn Cave
-parameter typeclass. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Why is there no splitBy in the list module?

2006-07-11 Thread Donn Cave
simply compare with a separator string, but could easily do more - eat up trailing blanks, for example. Note use of Maybe, basically to disambiguate end of data with and without match. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Re: Why is there no splitBy in the list module?

2006-07-12 Thread Donn Cave
is type 1. UNIX shell does that, awk, Python ... (Perl is awk gone horribly wrong, so it presumably does but if it doesn't, it's the exception that proves the rule.) It has worked for a lot of people who do a lot of splitting, for a lot of years. Donn Cave, [EMAIL PROTECTED

Re: [Haskell-cafe] Re: Why is there no splitBy in the list module?

2006-07-12 Thread Donn Cave
the split condition be the first parameter -- the infix notation looks good, but it will need a flip to get the parameters in the right order. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] Re: Why is there no splitBy in the list module?

2006-07-12 Thread Donn Cave
(xs) | == | \n `join` xs |in Haskell (wherejoin sep = concat . intersperse sep ) Suit yourself! Since we seem to be in agreement on the basic point, I won't go into what I think about \n.join(xs). Donn Cave, [EMAIL PROTECTED

Re: [Haskell-cafe] ldap-haskell questions

2006-07-14 Thread Donn Cave
so on the link command, libldap.a instead of -lldap. Pardon me if that's obvious! Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: ldap-haskell questions

2006-07-16 Thread Donn Cave
, but something about LDAP_OPT_X_TLS hints that it may be non-standard. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: ldap-haskell questions (+ rant!)

2006-07-26 Thread Donn Cave
- I'm asking for the easy thing! You don't need to know why execve() needs to support argv[0..n]. You don't need to know why there's an ldap_bind_s, and an ldap_bind. Just give me access to the functions the way they are, please! Thanks! Donn Cave, [EMAIL PROTECTED

Re: [Haskell-cafe] Why does Haskell have the if-then-else syntax?

2006-07-26 Thread Donn Cave
be assigned to the else clause, but there don't tend to be that many other such contexts. Does that answer the question? Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Monad Imparative Usage Example

2006-08-02 Thread Donn Cave
On Wed, 2 Aug 2006, Donald Bruce Stewart wrote: ... Of course, if you're learning Haskell, you should probably try to /avoid/ mutable variables for a while. Along the same line, I note that proposed solutions seem to use features relatively recently added to the language, is that true? StateT

[Haskell-cafe] C++ virtual methods (was Reviving wxHaskell)

2006-08-03 Thread Donn Cave
seems obtuse, I haven't used wxHaskell, more interested in the idea in general - I've done it with Python, but there the API is more obvious.) Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Donn Cave
their livelihood on Haskell software development - it isn't the safe choice, and it means someone finds the reasons for it very compelling. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Donn Cave
On Fri, 4 Aug 2006, Udo Stenzel wrote: Hans van Thiel wrote: I'm wondering why I can't find any commercial Haskell applications on the Internet. Is there any reason for this? Of course. Corporations are conservative to the point of being boneheaded. So to avoid risk, they all went on the

Re: [Haskell-cafe] getContents and lazy evaluation

2006-09-01 Thread Donn Cave
involve operations on the file handle, e.g., hClose. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] getContents and lazy evaluation

2006-09-01 Thread Donn Cave
in such cases. For example, one common way to share a file is to interlock around some resource, and when you acquire the lock, you read the file (get its contents) and release the lock. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Trouble with simple embedding of shell in haskell

2006-09-21 Thread Donn Cave
hi shell process, because that process exits instead of reading from its input.) I can't say whether you really need forkIO, or whether it's really going to do what you need - not only do I not know enough about the thread model, neither do I know what you're really trying to do. Donn Cave

Re: [Haskell-cafe] Re: Trouble with simple embedding of shell in haskell

2006-09-21 Thread Donn Cave
. For me, it hangs - since I left the wait in. If I omit the wait, it's broken pipe, I think because we're trying to write data to head after it exits. Donn Cave, [EMAIL PROTECTED] sh :: String - String - IO String sh cmd = \input - do (stdin, stdout, _, pid

[Haskell-cafe] ByteString FFI

2006-11-12 Thread Donn Cave
don't see any other Ptr-related function or constructor in the documentation - am I missing something there? Thanks, Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] ByteString FFI

2006-11-12 Thread Donn Cave
, and that didn't leak nearly as much memory - but still some, in a simple loop where pack doesn't leak anything. Thanks, Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Donn Cave
is the same with the other, right? thanks, Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] non-blocking Socket

2006-11-13 Thread Donn Cave
in Haskell, so whatever problem with one is the same with the other, right? thanks, Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Collection of objects?

2006-11-17 Thread Donn Cave
for the types you want to support - data Object = IntObject Int | StringObject String objectString :: Object - String objectString (IntObject v) = show v objectString (StringObject v) = v main = mapM (putStrLn . objectString) [(IntObject 7), (StringObject eight)] Donn Cave, [EMAIL

Re: [Haskell-cafe] Re: On improving libraries: wanted list

2006-12-13 Thread Donn Cave
directly support it, that would probably be just as well. Well, you asked for comments! Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Writing Haskell For Dummies Or At Least For People Who Feel Like Dummies When They See The Word 'Monad'

2006-12-14 Thread Donn Cave
others to suit particular applications. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ANN: ctemplate, SSL server support in HsOpenSSL, network-minihttp, binary parsing, network-dns

2008-02-14 Thread Donn Cave
anything about it. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Doubting Haskell

2008-02-16 Thread Donn Cave
of these library functions came from? For the author of the original post ... can't make out what you actually found and tried, so you should know about catch in the Prelude, the basic exception handler. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe

Re: [Haskell-cafe] Re: Doubting Haskell

2008-02-17 Thread Donn Cave
enjoy puns, and mapped to an A/B form it seemed obvious that Success is A. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Network.Socket Woes

2008-03-07 Thread Donn Cave
, and was just a minute short of sending in the FORTRAN Programmer's solution. It would have really made your eyes burn. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell-cafe] Exception handling when using STUArray

2008-03-08 Thread Donn Cave
. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Exception handling when using STUArray

2008-03-09 Thread Donn Cave
the difference between errors and exceptions, but it doesn't come across and I don't think it's just me. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Exception handling when using STUArray

2008-03-10 Thread Donn Cave
carry on regardless, however, so the implementation shouldn't be sensitive to these philosophical distinctions. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Exception handling when using STUArray

2008-03-12 Thread Donn Cave
On Mar 10, 2008, at 5:48 PM, Jonathan Cast wrote: On 10 Mar 2008, at 12:37 AM, Donn Cave wrote: ... An exception is, for me, any state that isn't properly accounted for in its immediate context. openFile could return 'Maybe Handle', but it doesn't, so the context demands a Handle

Re: [Haskell-cafe] Exception handling when using STUArray

2008-03-12 Thread Donn Cave
On Mar 12, 2008, at 6:34 AM, Brandon S. Allbery KF8NH wrote: On Mar 11, 2008, at 14:27 , Donn Cave wrote: readLDAPMessage s = let [(_, msgID), (tag, body)] = berList s in LDAPMessage (berInt msgID) (readResponse tag body) I go on to account for all the LDAP stuff I need in about

Re: [Haskell-cafe] Exception handling when using STUArray

2008-03-12 Thread Donn Cave
On Mar 12, 2008, at 12:32 PM, Brandon S. Allbery KF8NH wrote: On Mar 12, 2008, at 14:17 , Donn Cave wrote: Sure. It isn't a lot of code, so I subjected it to Either-ization as an experiment, and I did indeed take the monad procedural route. Monad != procedural, unless you insist on do

Re: [Haskell-cafe] Exception handling when using STUArray

2008-03-12 Thread Donn Cave
On Mar 12, 2008, at 2:10 PM, Henning Thielemann wrote: On Wed, 12 Mar 2008, Donn Cave wrote: On Mar 12, 2008, at 12:32 PM, Brandon S. Allbery KF8NH wrote: On Mar 12, 2008, at 14:17 , Donn Cave wrote: Sure. It isn't a lot of code, so I subjected it to Either-ization as an experiment

Re: [Haskell-cafe] Exception handling when using STUArray

2008-03-13 Thread Donn Cave
be caught outside IO? (Of course, I do _not_ propose to write code per the expanded example above - that's only a partial expansion, and already too cumbersome to be useful. It's only a conceptual model.) Donn Cave, [EMAIL PROTECTED] ___ Haskell

Re: [Haskell-cafe] Dynamic typing makes you more productive?

2008-03-18 Thread Donn Cave
On Mar 18, 2008, at 12:00 PM, Thomas Schilling wrote: ... I think it's worth to try to make it clear that static typing can help programmers new to the code easily check where things are used and gives them the confidence that their changes won't introduce unintended side effects. It's

Re: [Haskell-cafe] I/O system brokenness with named pipes

2008-04-12 Thread Donn Cave
to work around the Haskell non-blocking, or the ReadWrite non-blocking? Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: I/O system brokenness with named pipes

2008-04-16 Thread Donn Cave
On Apr 16, 2008, at 10:25 AM, Brandon S. Allbery KF8NH wrote: On Apr 16, 2008, at 13:23 , Miguel Mitrofanov wrote: You are insulting other Unixes. It works on Mac OS X, for example. Not just that, but IIRC Linux was late to the party: Solaris got / dev/fd/ and /dev/stdin before Linux got

Re: [Haskell-cafe] Laziness and Either

2008-04-21 Thread Donn Cave
would use error. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Writing an 'expect'-like program with runInteractiveCommand

2008-05-01 Thread Donn Cave
that causes the program to fail mysteriously. Donn Cave, [EMAIL PROTECTED] -- import System.Posix.Terminal (TerminalMode(..), TerminalState(..), withoutMode, getTerminalAttributes, setTerminalAttributes, openPseudoTerminal

Re: [Haskell-cafe] runInteractiveProcess and hGetLine on Windows

2008-05-07 Thread Donn Cave
that runInteractiveProcess has an inadequate API, since you can't indicate whether the interaction with the other process should happen in text or binary mode. I don't see any reason to support text mode. Doesn't hGetLine imply text mode? What does Line mean, otherwise? Donn Cave

[Haskell-cafe] haskell compiler on NetBSD amd64

2008-05-09 Thread Donn Cave
files to build 6.6.1 on NetBSD, and then use 6.6.1 to build 6.8 or whatever the current version may be by the time I get there? -- Donn Cave [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] haskell compiler on NetBSD amd64

2008-05-10 Thread Donn Cave
/netbsd .hc files from i386/netbsd -- where there's already a working ghc. I have ghc 6.4.1 on NetBSD 3.0 i386. That's the idea, right? as apparently 6.8 is known to not build from .hc files. I don't understand `with headers starting to diverge'. Donn Cave, [EMAIL PROTECTED] -- Donn

Re: [Haskell-cafe] haskell compiler on NetBSD amd64

2008-05-11 Thread Donn Cave
. I will follow up off list if I get anywhere interesting with it, either to parties to this exchange or maybe glasgow-haskell-users would be an appropriate place. -- Donn Cave [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] haskell compiler on NetBSD amd64

2008-06-01 Thread Donn Cave
On Sat, 10 May 2008 10:35:12 +0100 Emil Skoeldberg [EMAIL PROTECTED] wrote: On Fri, May 09, 2008 at 10:21:19PM -0700, Donn Cave wrote: So here I am with 64 bit Athlon hardware, running amd64 NetBSD (a.k.a. x86_64), reasonably motivated to compile Haskell. So, we are in the same boat

Re: [Haskell-cafe] haskell compiler on NetBSD amd64

2008-06-01 Thread Donn Cave
(), unsetenv(), etc. So if that's agreeable, don't take the file I put on-line, I'll build up another one. thanks -- Donn Cave [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] OpenSSL.Digest linking error: EVP_mdc2

2008-07-06 Thread Donn Cave
that the function hopenssl was looking for is commonly missing in SSL builds. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] proposal: point free case expressions

2009-11-05 Thread Donn Cave
. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Opinion about JHC

2009-11-11 Thread Donn Cave
that's exactly backwards for minority platforms, where the compilers that compile themselves tend to be no use whatever. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Opinion about JHC

2009-11-11 Thread Donn Cave
have to agree. If you were a compiler developer for a language that supports like-platform porting the way GHC does, after trying to keep that working while developing the language I suspect you might also be tempted to agree. Donn Cave, d...@avvanta.com

Re: [Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-07 Thread Donn Cave
and valuable opinions about how various contingencies ought to be handled, in the end it no doubt it must be up to the programmer writing the code ... right? Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Why?

2009-12-11 Thread Donn Cave
Quoth Luke Palmer lrpal...@gmail.com, ... This is not the sort of resistance I expected :-). Naturally my unrealistic argument applies to FFI as well; sin, if imported from C, would have to return in an appropriate structure. Not necessarily IO (I don't like the idea of a universal sin-bin

[Haskell-cafe] getting data through foreign layer without marshalling

2009-12-13 Thread Donn Cave
the AppData parameter first - I rewrite the C++ object's FunPtrs every time I update the application data (freeHaskellFunPtr prior values.) I'm just not sure where AppData lives while it's referenced in a FunPtr via partial application, if there might be multiple copies, etc. thanks! Donn

Re: [Haskell-cafe] getting data through foreign layer without marshalling

2009-12-14 Thread Donn Cave
Quoth Bernie Pope florbit...@gmail.com, 2009/12/14 Donn Cave d...@avvanta.com: [...] I don't fully understand what you want to do, but perhaps you can use a StablePtr: http://www.haskell.org/ghc/docs/latest/html/libraries/base/Foreign-StablePtr.html Yes, thank you very much, that does

Re: [Haskell-cafe] Linguistic hair-splitting

2010-01-28 Thread Donn Cave
Quoth Daniel Fischer daniel.is.fisc...@web.de, Am Donnerstag 28 Januar 2010 09:14:38 schrieb Ketil Malde: Daniel Fischer daniel.is.fisc...@web.de writes: As usual, that only works part of the time. [1,4,15,3,7] is not a computation, it's a list of numbers. A plain and simple everyday value.

Re: [Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-21 Thread Donn Cave
no way to catch the former without making connections more fragile. Donn Cave d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-23 Thread Donn Cave
Quoth Brandon S. Allbery KF8NH allb...@ece.cmu.edu, On Feb 21, 2010, at 20:17 , Jeremy Shaw wrote: The PS3 does do something though. If we were doing a write *and* read select on the socket, the read select would wakeup. So, it is trying to notify us that something has happened, but we are

Re: [Haskell-cafe] [offtopic] UNIX Shell (was: GHC RTS question)

2010-02-24 Thread Donn Cave
Quoth Roman Cheplyaka r...@ro-che.info, ... Well, this agrees with POSIX. So still I don't see the difference between $@ and ${1+$@}. Whatever the standards etc. may say, I believe $@ is reliably the same as ${1+$@}, for old Bourne shells and new. Donn

[Haskell-cafe] native threads vs. -threaded

2010-02-27 Thread Donn Cave
to anyone. I assume it's not working as intended, as from the documentation I would rather have guessed that -thread would be required in this situation. thanks! Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Re: native threads vs. -threaded

2010-02-28 Thread Donn Cave
Quoth Achim Schneider bars...@web.de, Donn Cave d...@avvanta.com wrote: I imagine I'm at fault somewhere in this, since I am also responsible for the GHC port to Haiku, but just wondering if this suggests an obvious course of inquiry to anyone. I assume it's not working as intended, as from

Re: [Haskell-cafe] Re: A few ideas about FRP and arbitrary access in time

2010-03-03 Thread Donn Cave
Kind of a long shot, from what I can make out, but Timber might be interesting - Haskell-like programming language with a reactive model that supports time as a sort of event. http://www.timber-lang.org/ Certainly not much like what we're talking about, but I haven't picked up on the application

Re: [Haskell-cafe] How to debug GHC

2005-04-26 Thread Donn Cave
need to also identify head's caller, then it should be obvious that this requirement is recursive. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Haskell vs OCaml

2005-05-03 Thread Donn Cave
of Objective CAML (the language) as ocaml (the implementation), but given the choice of a language I can actually use on a given platform, I am predisposed to have a soft spot for its other virtues like predictable execution and a relatively rigorous OOP model when you want it. Donn Cave

Re: [Haskell-cafe] Python?

2005-05-11 Thread Donn Cave
On Wed, 11 May 2005, Jerzy Karczmarczuk wrote: Pierre Barbier de Reuille wrote about Python and lambdas: Well, I would not recommand using lambda functions ! The main reason is they are limited in that they only accept expressions (ie. not statements) and you can end up with very ugly things

Re: [Haskell-cafe] Text search

2005-05-17 Thread Donn Cave
for curiosity's sake, how much string data are we talking about here? Is it practical to process a serious volume of data as [Char]? Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] Space questions about intern and sets

2005-06-03 Thread Donn Cave
common mistake of discounting a trailing separator, so both A:A: and A:A split to [A, A], where the former should be [A, A, ]. It does handle :A:A and A::A correctly, so you can just wrap splitPS with a function that may add a nilPS depending on the end of the input string. Donn Cave

Re: [Haskell-cafe] Fork execve

2005-07-05 Thread Donn Cave
version, than to check the shell command input data for shell punctuation that would have unintended results. If you're on another platform or using another Haskell implementation, it still might be worth a try, I just haven't tried it myself. Donn Cave, [EMAIL PROTECTED

[Haskell-cafe] Re: How to variables/O'Haskell

2005-07-19 Thread Donn Cave
/survey.html, there are also some significant omissions. For example, he doesn't use this phrase, but I think there's no open recursion. I can't imagine using this language's OO features in a C++ toolkit wrapper. But I never tried it, and it might be an interesting demonstration project. Donn

Re: [Haskell-cafe] Suggestions for #defines with FFI

2005-07-27 Thread Donn Cave
fromLDAPOpt LDAP_OPT_X_TLS = (#const LDAP_OPT_X_TLS) fromLDAPOpt LDAP_OPT_X_TLS_REQUIRE_CERT = (#const LDAP_OPT_X_TLS_REQUIRE_CERT) fromLDAPOpt LDAP_OPT_PROTOCOL_VERSION = (#const LDAP_OPT_PROTOCOL_VERSION) fromLDAPOpt LDAP_OPT_DEBUG_LEVEL = (#const LDAP_OPT_DEBUG_LEVEL) etc. Donn

Re: [Haskell-cafe] case of (was: [Haskell] Mixing monadic and non-monadic functions)

2005-09-19 Thread Donn Cave
., this seems to be OK: getArgs = \ (a:_) - putStrLn (show a) but how do you write getArgs = \ [] - putStrLn (no arguments) (a:_) - putStrLn (show a) (pardon me if I missed where you were going in case of ...) Donn Cave, [EMAIL PROTECTED

Re: [Haskell-cafe] case of (was: [Haskell] Mixing monadic and non-monadic functions)

2005-09-20 Thread Donn Cave
On Tue, 20 Sep 2005, Bernard Pope wrote: On Tue, 2005-09-20 at 10:14 +0200, Sven Moritz Hallberg wrote: Donn Cave schrieb: ... but how do you write getArgs = \ [] - putStrLn (no arguments) (a:_) - putStrLn (show a) What about good old let? main = getArgs

Re: [Haskell-cafe] Endian conversion

2005-10-06 Thread Donn Cave
32 bit floats on the C side before swapping them with htonl. Donn Cave, [EMAIL PROTECTED] --- Netword.hsc --- -# OPTIONS -fffi #-} module Netword (htonl,ntohl) where import Foreign import Foreign.C #include netw.h foreign import ccall unsafe c_htonl htonl :: CInt - CInt foreign import

Re: [Haskell-cafe] first post

2005-11-30 Thread Donn Cave
style of writing, does ... end a sentence, or should that be interpreted in some other way? Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Learning Haskell

2005-12-05 Thread Donn Cave
Quoth Jimmie Houchin [EMAIL PROTECTED]: ... | Haskell looks like a very interesting language. I am only so-so with | Python and I thought that maybe if instead of spending sufficient time | to get proficient with Python, I could invest a similar time (more or | less) and get reasonably

Re: [Haskell-cafe] Learning Haskell

2005-12-06 Thread Donn Cave
' is coming along. (Hope they figured out a better | name, anyway.) | | Got an url for the project? http://homepages.inf.ed.ac.uk/wadler/links/ Having looked it up, of course I looked at it. Please forget I asked. Donn Cave, [EMAIL PROTECTED

Re: [Haskell-cafe] syscall, sigpause and EINTR on Mac OSX

2005-12-11 Thread Donn Cave
when it occurs in library functions. Now if you actually have observed that your SIGINT handler was entered at this point, then please ignore me. Donn Cave, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

  1   2   3   4   >