Safe Haskell | Safe-Inferred |
---|
Collect korvais into a searchable form.
Synopsis
- type Select = forall i. [(i, Korvai.Score)] -> [(i, Korvai.Score)]
- scores :: [(Int, Korvai.Score)]
- recentDates :: Int -> Select
- aroundDate :: Day -> Integer -> Korvai.Korvai -> Bool
- ofType :: Text -> Korvai.Score -> Bool
- nameLike :: Text -> Korvai.Score -> Bool
- hasInstrument :: Text -> Korvai.Score -> Bool
- tagHas :: Text -> Text -> Korvai.Score -> Bool
- date :: CallStack.Stack => Int -> Int -> Int -> Day
- searchp :: [Korvai.Score -> Bool] -> IO ()
- search :: [Korvai.Score -> Bool] -> [(Int, Korvai.Score)]
- searchAll :: Select -> [Korvai.Score -> Bool] -> [(Int, Korvai.Score)]
- formats :: [(Int, Korvai.Score)] -> Text
- format :: (Int, Korvai.Score) -> Text
- writeAll :: IO ()
- writeHtml :: IO ()
- writeHtml1 :: Korvai.Score -> IO ()
- writeHtmlTo :: FilePath -> IO ()
- scoreFname :: Korvai.Score -> FilePath
- qualifiedName :: Korvai.Score -> Text
- writeText :: IO ()
- writeTextTo :: FilePath -> FilePath -> Format.Abstraction -> IO ()
- writeText1 :: Korvai.Score -> IO ()
- stripColors :: Text -> Text
- writeWithStatus :: (Korvai.Score -> IO ()) -> [Korvai.Score] -> IO ()
- writeCommit :: FilePath -> IO ()
- clearDir :: FilePath -> IO ()
- realize :: Korvai.Korvai -> IO ()
- realizep :: Korvai.Korvai -> IO ()
- realizeM :: (Terminal.Config -> Terminal.Config) -> Korvai.Korvai -> IO ()
- realizek :: Korvai.Korvai -> IO ()
- realizekp :: Korvai.Korvai -> IO ()
- realizeR :: (Terminal.Config -> Terminal.Config) -> Korvai.Korvai -> IO ()
Documentation
type Select = forall i. [(i, Korvai.Score)] -> [(i, Korvai.Score)] Source #
Select scores to search. Filter can only look at one score at a time, this can select a group of them.
scores :: [(Int, Korvai.Score)] Source #
recentDates :: Int -> Select Source #
The number of date groups starting from the most recent.
aroundDate :: Day -> Integer -> Korvai.Korvai -> Bool Source #
hasInstrument :: Text -> Korvai.Score -> Bool Source #
search :: [Korvai.Score -> Bool] -> [(Int, Korvai.Score)] Source #
searchAll :: Select -> [Korvai.Score -> Bool] -> [(Int, Korvai.Score)] Source #
writeHtml1 :: Korvai.Score -> IO () Source #
writeHtmlTo :: FilePath -> IO () Source #
Write all Korvais as HTML into the given directory.
scoreFname :: Korvai.Score -> FilePath Source #
qualifiedName :: Korvai.Score -> Text Source #
Write to solkattu-text for grepping and diffing, and solkattu-color for catting.
writeTextTo :: FilePath -> FilePath -> Format.Abstraction -> IO () Source #
The usual text dir is a git repo, so I can see what effect changes have, in the same manner as App.VerifyPerformance.
writeText1 :: Korvai.Score -> IO () Source #
stripColors :: Text -> Text Source #
writeWithStatus :: (Korvai.Score -> IO ()) -> [Korvai.Score] -> IO () Source #
writeCommit :: FilePath -> IO () Source #
realize :: Korvai.Korvai -> IO () Source #
realizep :: Korvai.Korvai -> IO () Source #
realizeM :: (Terminal.Config -> Terminal.Config) -> Korvai.Korvai -> IO () Source #
realizek :: Korvai.Korvai -> IO () Source #
realizekp :: Korvai.Korvai -> IO () Source #
realizeR :: (Terminal.Config -> Terminal.Config) -> Korvai.Korvai -> IO () Source #