After some discussion on this list, I used a newtype-wrapped Int64, rather than a type-aliased Int64, for offsets in my seqloc library. With a fair bit of experience writing code against this interface, I can say that it works well--the Num instance supplies everything you need for arithmatic and literals. Would this definition of Offset work for biocore? Client code would just need fromIntegral added in a few places, and these would actually be optimized away.
Best, --Nick On Jul 16, 2011, at 2:40 AM, Ketil Malde wrote: > Ketil Malde <ke...@malde.org> writes: > >> And more. > > A quick writeup of the refactoring is now posted at > http://blog.malde.org/.¹ Feedback welcome. > > -k > > ¹) I'd like to illustrate it graphically as well, but that'll have to > wait until I have a real mouse (Inkscape and trackpoint - I think not.) > -- > If I haven't seen further, it is by standing in the footprints of giants > _______________________________________________ > Biohaskell mailing list > Biohaskell@biohaskell.org > http://malde.org/cgi-bin/mailman/listinfo/biohaskell _______________________________________________ Biohaskell mailing list Biohaskell@biohaskell.org http://malde.org/cgi-bin/mailman/listinfo/biohaskell