Alexander Dunlap wrote:
Couple of suggestions:
- You should put an (Integer i) => constraint on the halve function so
that it becomes impossible to create invalid HalfIntegers.
Right. Currently you can *make* such a HalfInteger. You just won't be
able to *do* anything with it afterwards. I
Felipe Lessa wrote:
On Sat, Jul 04, 2009 at 12:37:21PM +0100, Andrew Coppin wrote:
It's on Hackage:
http://hackage.haskell.org/package/AC-HalfInteger-1.1.1
It'll be interesting to see if I uploaded it right... o_O
I guess you did, congrats! :)
...on the Haddock comments of halve a
On Sat, Jul 04, 2009 at 12:37:21PM +0100, Andrew Coppin wrote:
> It's on Hackage:
>
> http://hackage.haskell.org/package/AC-HalfInteger-1.1.1
>
> It'll be interesting to see if I uploaded it right... o_O
I guess you did, congrats! :)
...on the Haddock comments of halve and double, it should be
Andrew Coppin wrote:
I just wrote a small module for dealing with half-integers. (That is,
any number I/2 where I is an integer. Note that the set of integers is
a subset of this; Wikipedia seems to reserve "half-integer" for such
numbers that are *not* integers.)
Now, the question is... Is t