.
Donn Cave, [EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
.
Donn Cave, [EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
/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
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
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
implementation issue.
Donn Cave, [EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
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
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
.
Donn Cave, [EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
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
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
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
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
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
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
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
. 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
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
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
-parameter typeclass.
Donn Cave, [EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
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
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
(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
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
, 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
- 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
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
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
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
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
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
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
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
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
.
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
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
, 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
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
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
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
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
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
anything
about it.
Donn Cave, [EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
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
, 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
.
Donn Cave, [EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
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
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
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
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
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
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
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
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
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
would use error.
Donn Cave, [EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
that causes the program to fail mysteriously.
Donn Cave, [EMAIL PROTECTED]
--
import System.Posix.Terminal (TerminalMode(..), TerminalState(..),
withoutMode, getTerminalAttributes, setTerminalAttributes,
openPseudoTerminal
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
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
/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
. 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
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
(), 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
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
.
Donn Cave, d...@avvanta.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
., 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
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
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
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
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
' 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
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 - 100 of 314 matches
Mail list logo