Skip to content

Commit

Permalink
version 0.1.2.8: instance Traversable Sequence (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
maksbotan authored Mar 12, 2020
1 parent 2951977 commit 94c652e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

## [0.1.2.8] - 2020-03-12
### Added
- `instance Traversable (Sequence mk w)`.

## [0.1.2.7] - 2020-02-11
### Changed
- Support GHC-8.8.
Expand Down
6 changes: 3 additions & 3 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: cobot-io
version: 0.1.2.7
version: 0.1.2.8
github: "less-wrong/cobot-io"
license: BSD3
category: Bio
category: Bio
author: "Pavel Yakovlev, Bogdan Neterebskii, Alexander Sadovnikov"
maintainer: "pavel@yakovlev.me"
copyright: "2018-2019, Less Wrong Bio"
Expand Down Expand Up @@ -57,7 +57,7 @@ library:
- TypeOperators
- TemplateHaskell
- FlexibleContexts


tests:
cobot-io-test:
Expand Down
3 changes: 3 additions & 0 deletions src/Bio/Sequence/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ instance Foldable (Sequence mk w) where

length = V.length . _sequ

instance Traversable (Sequence mk w) where
traverse f s@Sequence{..} = fmap (\newSeq -> s { _sequ = newSeq }) $ traverse f _sequ

-- | Exported constructor for 'Sequence'. Should be used ONLY in module Bio.Sequence.
--
_sequenceInner :: Vector a -> [(mk, Range)] -> Vector w -> Sequence mk w a
Expand Down

0 comments on commit 94c652e

Please sign in to comment.