You can subscribe to this list here.
2002 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
From: Stefan K. <sk...@ma...> - 2003-11-14 06:14:01
|
Dear Juanma, thanks for your remarks. Juanma Barranquero (Mon, Nov 10, 2003 at 10:54:22AM +0100): > On Fri, 7 Nov 2003 19:55:47 +0100 > Stefan Karrmann <sk...@ma...> wrote: > > > I've inserted 'convert = (uncurry cFromTai) . cToTai'. > > Great, thanks. > > > A fixed and checked version is appended and carbon copied to > > <has...@li...>. > > What's haskell-libs-developers? I thought libraries' development was > carried over on lib...@ha...... (And shouldn't we be discussing > Tai.lhs there, BTW :) Well, the original thread was on this list. I'm moving it to lib...@ha... now. > I'm attaching a patch (diff -u2) with a few small changes: I've included it. > More coments: > > - I'm sending you the patch throw the Haskell list because previous > attempts of sending to your e-mail address failed. I'm using ASK as a spam killer. Do you have problems with it? > - Are you very fond of the literate style? I ask because unlit'ing it > would allow adding Haddock coments, which would be nice. I've given it a try, but my comment marking could be improved. > - I'm not sure I like depending on a leapseconds table hardcoded in the > source, even if it changes slowly. Wouldn't it be better to have the > data in a file and load it through unsafePerformIO? (And isn't > loading configuration data one of the few "good" examples of use of > unsafePerformIO, after all? :) Well, I included the two as examples. The empty one is correct for all times before 1970-01-01. That's more than ten billion years. > - I get a warning with -Wall: > > Warning: Defined but not used: > TimeDiff, days_from_MJD2unixEpoch, days_from_unixEpoch2MJD', > hours_per_day, isodelta, isomoveDHM, isomoveS, isomoveYM, > libtaiEpoch, month_per_year, test, test2 Some values are only for testing and debugging while others are experimental, e.g. TimeDiff and friends. > Several of these are neither used nor exported. ??? Regards, -- Stefan Karrmann |
From: Stefan K. <sk...@ma...> - 2003-11-07 20:41:35
|
Dear Juanma, some last moment changes broke the library, I am sorry. Juanma Barranquero (Thu, Nov 06, 2003 at 05:03:03PM +0100): > > On Sat, 1 Nov 2003 17:36:11 +0100 > Stefan Karrmann <sk...@ma...> wrote: > > > a while ago time calculation was subject on this list. > > Now, I have a time library based on the TAI (international > > atomic time) time scale. > > I get the following error with GHCi: > > ------------------------------------------------------------ > > Compiling Main ( Tai.lhs, interpreted ) > > Tai.lhs:450: > Couldn't match `LeapSeconds' against `TAI' > Also, wouldn't make sense to add: > > cConvert :: (Calendar a, Calendar b) => a -> b > cConvert = cFromTai . cToTai I've inserted 'convert = (uncurry cFromTai) . cToTai'. A fixed and checked version is appended and carbon copied to <has...@li...>. Regards, -- Stefan Karrmann |
From: Shinya H. <te...@to...> - 2003-04-27 06:44:00
|
Hi all, I am new to this list. -- Thanks shapr for a developer account. I've just wrote a library for embedding Perl. $ cat Perl.hs module Language.Perl ( new -- :: IO PERLREF , eval -- :: PERLREF -> String -> IO () ) where import Foreign hiding (new) import Foreign.C type PERL = Ptr () type PERLREF = ForeignPtr () foreign import ccall "perl_alloc" perl_alloc :: IO PERL foreign import ccall "perl_construct" perl_construct :: PERL -> IO () foreign import ccall "perl_parse" perl_parse :: PERL -> FunPtr () -> Int -> Ptr CString -> Ptr CString -> IO () foreign import ccall "perl_run" perl_run :: PERL -> IO () foreign import ccall "perl_destruct" perl_destruct :: PERL -> IO () foreign import ccall "perl_free" perl_free :: PERL -> IO () foreign import ccall "_eval_pv" _eval_pv :: PERL -> CString -> IO CString foreign import ccall "&xs_init" xs_init :: FunPtr () new :: IO PERLREF new = perl_alloc >>= \my_perl -> perl_construct my_perl >> newCString "" >>= \a1 -> newCString "-e" >>= \a2 -> newCString "0" >>= \a3 -> newArray [a1, a2, a3] >>= \argv -> perl_parse my_perl xs_init 3 argv nullPtr >> perl_run my_perl >> newForeignPtr my_perl (destructPerl my_perl) where destructPerl perl = perl_destruct perl >> perl_free perl eval :: PERLREF -> String -> IO String eval perl str = do res <- withForeignPtr perl $ \p -> withCString str (_eval_pv p) peekCString res $ cat wrapper.c #include <EXTERN.h> #include <perl.h> #ifdef PERL_IMPLICIT_CONTEXT char* _eval_pv(pTHX_ const char *p) { #else char *_eval_pv(void *dummy, char *p) { #endif SV *sv = eval_pv(p, TRUE); return SvPV(sv, PL_na); } EXTERN_C void boot_DynaLoader (pTHX_ CV* cv); EXTERN_C void xs_init(pTHX) { char *file = __FILE__; newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); } $ ghc -fglasgow-exts -c Perl.hs wrapper.c \ -optc '`perl -MExtUtils::Embed -e ccopts`' \ -optl '`perl -MExtUtils::Embed -e ldopts`' $ mkdir Language && cp Perl.hi Language/ $ cat try.hs module Main where import qualified Language.Perl as Perl main = do perl <- Perl.new html <- Perl.eval perl $ "use LWP::Simple;" ++ "get 'http://haskell.org/';" putStr html $ ghc -fglasgow-exts -o try try.hs Perl.o wrapper.o -optl \ '`perl -MExtUtils::Embed -e ldopts`' $ ./try -- Wow! I have to consider a way to build and use the library. And I am planning to write a Language.Ruby, Language.Python, and Template engine like the Temlate-toolkit(*). [*] http://www.template-toolkit.org/ -- SH te...@to... |
From: Shae M. E. <sh...@Sc...> - 2003-03-30 19:21:20
|
I think it's time to release 1.0 of lambdabot. We have some useful stuff, so let's "release early, release often" If you have something that you want to get into this release, get in touch! New modules for the 1.0 release: FactModule FortuneModule SystemModule TopicModule Tom Moertel rewrote the Util.hs module with Haddock docs, thanks Tom! As much as I'd like to release on the first of April, I think the third might be better. :-) -- Shae Matijs Erisson - 2 days older than RFC0226 #haskell on irc.freenode.net - We Put the Funk in Funktion 10 PRINT "HELLO" 20 GOTO 10 ; putStr $ fix ("HELLO\n"++) |
From: Shae M. E. <sh...@we...> - 2003-03-26 02:30:06
|
Yay! Fifth post! Anybody out there? -- Shae Matijs Erisson - 2 days older than RFC0226 #haskell on irc.freenode.net - We Put the Funk in Funktion 10 PRINT "HELLO" 20 GOTO 10 ; putStr $ fix ("HELLO\n"++) |
From: Shae M. E. <sh...@Sc...> - 2002-07-10 20:06:11
|
Andrew J Bromage <an...@br...> writes: > G'day all. > > There is already a partly-written attempt to port Clean's Object I/O > library to Haskell. It is currently without an owner. The library > includes middle-layer GUI stuff (like Java's AWT) and TCP/IP handling. > since a good network interface is something that Haskell really needs, > this might be an appropriate first project for haskell-libs. > > Here's Simon Peyton-Jones' call to arms: > > http://haskell.org/cleanIO.html > > What do we think? Is this a good first project? Being already mostly > designed, documented and started should be a Good Thing(tm) to get the > momentum started. I just found this email for the first time. It seems to have slipped through the cracks of my email filing somehow. I'm currently working on a Haskell implementation of the Twisted.spread from http://www.twistedmatrix.com/ I think my Haskell skills will be worthy of writing "real" code after I've completed that. Anyone still subsribed to this list? I'm interested in porting the Object I/O lib, but my skills are not yet worthy. -- Shae Matijs Erisson - http://www.webwitches.com/~shae/ <radix> shapr: I think you *are* a purist :) <radix> shapr: it's just that you're morally against unstable software, instead of morally against MS, or non-free software, or whatnot. |
From: Andrew J B. <an...@br...> - 2002-03-25 04:35:40
|
G'day all. There is already a partly-written attempt to port Clean's Object I/O library to Haskell. It is currently without an owner. The library includes middle-layer GUI stuff (like Java's AWT) and TCP/IP handling. since a good network interface is something that Haskell really needs, this might be an appropriate first project for haskell-libs. Here's Simon Peyton-Jones' call to arms: http://haskell.org/cleanIO.html What do we think? Is this a good first project? Being already mostly designed, documented and started should be a Good Thing(tm) to get the momentum started. Cheers, Andrew Bromage |
From: Shae E. <sh...@we...> - 2002-02-04 22:41:13
|
this is great: http://ocamlnet.sourceforge.net/doc/goals/goals.html replace those ocaml words with haskell, and I think we've got a listing of what we need to start with. any comments? ---- Shae Matijs Erisson - http://www.webwitches.com/~shae/ Functional Programming, that's the opposite of dysfunctional programming, right? That means we can't use Visual Basic anymore. |
From: Shae E. <sh...@we...> - 2002-02-04 22:35:45
|
This is a test ---- Shae Matijs Erisson - http://www.webwitches.com/~shae/ Functional Programming, that's the opposite of dysfunctional programming, right? That means we can't use Visual Basic anymore. |