Re: ANNOUNCE: Haddock version 0.6

2003-11-12 Thread Juanma Barranquero

On Wed, 12 Nov 2003 10:07:58 -
"Simon Marlow" <[EMAIL PROTECTED]> wrote:

> Yes, they're binary incompatible I'm afraid.

Oh, well... :)

> The path is the path to the HTML files, and the filename is the name of
> the .haddock file.  They can be completely different, e.g.

Of course. Silly me.

Thanks,

Juanma


___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell


Re: ANNOUNCE: Haddock version 0.6

2003-11-11 Thread Juanma Barranquero
On Tue, 11 Nov 2003 11:01:00 -, "Simon Marlow" <[EMAIL PROTECTED]> wrote:

> There is a new release of Haddock, version 0.6.

Are interface files binary-incompatible with those of previous releases?

With a Cygwin-compiled 0.6, I get an error:

  Fail: end of file
  Action: Data.Binary.getWord8

while trying to --read-interface a GHC 6.01 .haddock file (for example,
ghc/doc/html/haskell98/haskell98.haddock). OTOH,

 haddock --html --dump-interface=doc\M1.haddock M1.hs

 haddock --html --read-interface=doc\,doc\M1.haddock M2.hs

seems to work.

And BTW, why it is necessary to write --read-interface=path,full-filename,
i.e., why

  --read-interface=c:\ghc\doc\html\haskell98,c:\ghc\doc\html\haskell98.haddock

instead of

  --read-interface=c:\ghc\doc\html\haskell98,haskell98.haddock

?

Thanks,

   /L/e/k/t/u

___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell


Re: time since the epoch

2003-11-10 Thread Juanma Barranquero
On Fri, 7 Nov 2003 19:55:47 +0100
Stefan Karrmann <[EMAIL PROTECTED]> wrote:

> I've inserted 'convert = (uncurry cFromTai) . cToTai'.

Great, thanks.

> A fixed and checked version is appended and carbon copied to  
> <[EMAIL PROTECTED]>. 

What's haskell-libs-developers? I thought libraries' development was
carried over on [EMAIL PROTECTED] (And shouldn't we be discussing
Tai.lhs there, BTW :)

I'm attaching a patch (diff -u2) with a few small changes:

 - 1%seconds_per_day  ->  1 % seconds_per_day  (otherwise GHC complains
   in -fglasgow-exts mode because it misinterprets it as an implicit
   parameter).

 - I've put a few _ here and there to silence warnings for unused
   arguments.

 - I've renamed a few variables because of "shadows an existing binding"
   warnings.

 - I've deleted a few internal definitions apparently not used
   (according to -Wall), like cumulated_month_length_after_february.

 - I've corrected a few typos.

More coments:

 - I'm sending you the patch throw the Haskell list because previous
   attempts of sending to your e-mail address failed.

 - Are you very fond of the literate style? I ask because unlit'ing it
   would allow adding Haddock coments, which would be nice.

 - 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? :)

 - 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

   Several of these are neither used nor exported. ???

Thanks,


Juanma



Tai.lhs.diff.bz2
Description: Binary data
___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell


Re: time since the epoch

2003-11-06 Thread Juanma Barranquero

On Sat, 1 Nov 2003 17:36:11 +0100
Stefan Karrmann <[EMAIL PROTECTED]> 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'
Expected type: LeapSeconds
Inferred type: TAI
In the first argument of `cFromTai', namely `taileap1'
In the first argument of `cSecond', namely
`(cFromTai taileap1 lst)'

Tai.lhs:453:
Couldn't match `LeapSeconds' against `TAI'
Expected type: LeapSeconds
Inferred type: TAI
In the first argument of `cFromTai', namely `taileap2'
In the first argument of `cSecond', namely
`(cFromTai taileap2 lst)'

Tai.lhs:472:
Couldn't match `LeapSeconds' against `TAI'
Expected type: LeapSeconds
Inferred type: TAI
In the first argument of `cFromTai', namely `taileap1'
In the first argument of `cSecond', namely
`(cFromTai taileap1 lst)'

Tai.lhs:475:
Couldn't match `LeapSeconds' against `TAI'
Expected type: LeapSeconds
Inferred type: TAI
In the first argument of `cFromTai', namely `taileap2'
In the first argument of `cSecond', namely
`(cFromTai taileap2 lst)'
Failed, modules loaded: none.



Also, wouldn't make sense to add:

cConvert :: (Calendar a, Calendar b) => a -> b
cConvert = cFromTai . cToTai

Or it is already there and I've missed it?

Juanma


___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell