Skip to content

Commit

Permalink
✨ Throw our own error on an unknown base code
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Apr 7, 2019
1 parent 628b339 commit 694914d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dna.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ compBase 'd' = 'h'
compBase 'h' = 'd'
compBase 'N' = 'N'
compBase 'n' = 'n'
compBase _ = error "Unknown base code"

-- Complement a sequence.
compSeq :: [Char] -> [Char]
Expand Down

0 comments on commit 694914d

Please sign in to comment.