-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.1.3.18. Lowercase insertion code support (#53)
- Loading branch information
Showing
11 changed files
with
1,851 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cobot-io | ||
version: 0.1.3.17 | ||
version: 0.1.3.18 | ||
github: "biocad/cobot-io" | ||
license: BSD3 | ||
category: Bio | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module Bio.Utils.Map | ||
( (!?!) | ||
) where | ||
|
||
|
||
import GHC.Stack (HasCallStack) | ||
import Data.Map.Strict (Map, | ||
(!?)) | ||
import Data.Maybe (fromMaybe) | ||
|
||
infix 9 !?! | ||
(!?!) :: (HasCallStack, Ord k, Show k, Show a) => Map k a -> k -> a | ||
(!?!) m k = fromMaybe (error $ "cobot-io: No key " ++ show k ++ " in Map: " ++ show m) $ m !? k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module Bio.Utils.Vector | ||
( (!?!) | ||
) where | ||
|
||
|
||
import GHC.Stack (HasCallStack) | ||
import Data.Vector (Vector) | ||
import qualified Data.Vector as V ((!?), | ||
length) | ||
import Data.Maybe (fromMaybe) | ||
|
||
infix 9 !?! | ||
(!?!) :: (HasCallStack, Show a) => Vector a -> Int -> a | ||
(!?!) v i = fromMaybe (error msg) $ v V.!? i | ||
where | ||
msg :: String | ||
msg = "cobot-io: index " ++ show i ++ " is out of bounds. Vector length is : " ++ show (V.length v) |
Oops, something went wrong.