Copyright | (c) 2014-2015 Guillaume Nargeot |
---|---|
License | BSD3 |
Maintainer | Michele Lacchia <michelelacchia@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Utility functions used in other modules.
- readP :: String -> [String] -> IO String
- git :: [String] -> IO String
- getGitInfo :: IO GitInfo
- getRemotes :: IO [Remote]
- verifyVersion :: String -> Version -> Bool
- fst3 :: (a, b, c) -> a
- snd3 :: (a, b, c) -> b
- trd3 :: (a, b, c) -> c
- fst4 :: (a, b, c, d) -> a
- toFirstAndRest :: (a, b, c, d) -> (a, (b, c, d))
- mcons :: Maybe a -> [a] -> [a]
- matchAny :: [String] -> String -> Bool
- mapFirst :: (a -> a) -> [a] -> [a]
- mapLast :: (a -> a) -> [a] -> [a]
- subSeq :: Int -> Int -> [a] -> [a]
- subSubSeq :: Int -> Int -> [[a]] -> [[a]]
- groupByIndex :: Int -> [(Int, a)] -> [[a]]
Documentation
getGitInfo :: IO GitInfo Source #
Get information about the Git repo in the current directory.
getRemotes :: IO [Remote] Source #
verifyVersion :: String -> Version -> Bool Source #
Check whether a string is a version and if it is greater than or equal to a specified version.
toFirstAndRest :: (a, b, c, d) -> (a, (b, c, d)) Source #
groupByIndex :: Int -> [(Int, a)] -> [[a]] Source #