Felipe Almeida Lessa <felipe.le...@gmail.com> writes:

> I don't see how
>
>   newtype Strand = Strand Bool
>
> would have better performance than
>
>   data Strand = Plus | Minus
>
> as both are enumerations (data Bool = True | False).

Me neither, but the page Christian referred to seems to indicate it.
Although it *is* dated in 2008, so things may have changed.  Certainly
it would be nice if a discriminated union of nullary constructors were
equal in performance to a type with a single constructor wrapping an Int
or similar.

Anyway - biocore now wraps a Bool, which apparently has been efficient
from 2008 and onwards, and hides the constructors.

There is also biosff, which included the SFF-parsing stuff from biolib,
and includes the 'flower' executable.

  darcs get http://malde.org/~ketil/biohaskell/{biocore,biosff}

-k
-- 
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

Reply via email to