Partial functions are commonly frowned upon. I'd recommend to provide an extra argument reverseComplement :: alphabet -> alphabet to any algorithm that requires it.
You could even write your algorithm for sequences over an alphabet that is only of Eq class, and use reverseComplement to define a custom (==) function. Olaf > Am 30.08.2017 um 01:08 schrieb Chad Laing <chadla...@inoutbox.com>: > > Hi, > > Within Bio.Core.Sequence, has there been any discussion over having an > 'alphabet' method within the BioSeq class, that could take 'Nucleotide' or > 'AminoAcid', or something similar? > > Then when implementing functions eg. reverseComplement would only accept > BioSeq of the 'Nucleotide' type. > > Thanks, > Chad > _______________________________________________ > Biohaskell mailing list > Biohaskell@biohaskell.org > http://biohaskell.org/cgi-bin/mailman/listinfo/biohaskell _______________________________________________ Biohaskell mailing list Biohaskell@biohaskell.org http://biohaskell.org/cgi-bin/mailman/listinfo/biohaskell