Skip to content

Commit

Permalink
version 0.1.5.2 Ord for FastaItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmihtt authored Nov 9, 2023
1 parent 9842c0b commit c0dcfa2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [Unreleased]

## [0.1.5.2] - 2023-11-09
- Add Ord for Fasta and related types.

## [0.1.5.1] - 2023-01-17
- Update dependencies for Haskell LTS-20.4.

Expand Down
1 change: 0 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ bcd-lts.mkBiocadProject {
shellArgs = {
buildInputs = [ bcd-lts.pkgs.RNA ];
};
compiler = "ghc925";
}
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cobot-io
version: 0.1.5.1
version: 0.1.5.2
github: "biocad/cobot-io"
license: BSD3
category: Bio
Expand Down
2 changes: 1 addition & 1 deletion src/Bio/FASTA/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ data FastaItem a
, sequ :: BareSequence a
-- ^ bare sequence
}
deriving (Eq, Show, Functor)
deriving (Eq, Ord, Show, Functor)

class ParsableFastaToken a where
parseToken :: (Char -> Bool) -> Parsec Void Text a
Expand Down
2 changes: 1 addition & 1 deletion src/Bio/Sequence/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ data Sequence mk w a
, _weights :: Vector w
-- ^ weights for all elements in sequence
}
deriving (Eq, Show, Generic, NFData, Functor)
deriving (Eq, Ord, Show, Generic, NFData, Functor)

instance Semigroup (Sequence mk w a) where
sequA <> sequB = res
Expand Down
6 changes: 3 additions & 3 deletions src/Bio/Sequence/Range.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import GHC.Generics (Generic)
data Border
= Precise
| Exceeded
deriving (Eq, Show, Generic, NFData)
deriving (Eq, Ord, Show, Generic, NFData)

-- | The end point of a range with indication whether it is @Precise@ of @Exceeded@ (see @Border@).
--
Expand All @@ -44,7 +44,7 @@ data RangeBorder
{ _borderType :: Border
, _borderLocation :: Int
}
deriving (Eq, Show, Generic, NFData)
deriving (Eq, Ord, Show, Generic, NFData)

makeLenses ''RangeBorder

Expand Down Expand Up @@ -80,7 +80,7 @@ data Range
}
-- ^ Indicates that the range is complementary.
-- Example in GB: rep complement(69..420)
deriving (Eq, Show, Generic, NFData)
deriving (Eq, Ord, Show, Generic, NFData)

makeLenses ''Range

Expand Down

0 comments on commit c0dcfa2

Please sign in to comment.