Safe Haskell | Safe-Inferred |
---|
Utilities to randomly select things to practice, and save what I practiced, for a flashcard-esque system.
Synopsis
- recentDates :: Int -> IO ()
- searchName :: Text -> IO ()
- types :: [Text]
- randomTypes :: [Text] -> IO ()
- realize :: Int -> IO ()
- realizep :: Int -> IO ()
- realizeM :: Format.Abstraction -> Korvai.Score -> IO ()
- realizeKon :: Int -> IO ()
- practiced :: Int -> BPM -> IO ()
- practicedName :: Text -> BPM -> IO ()
- type BPM = Int
- get :: Int -> Korvai.Score
- practicedDb :: FilePath
- pick :: [a] -> IO (Maybe a)
- data Practiced = Practiced {}
- savePracticed :: [Practiced] -> IO ()
- loadPracticed :: IO [Practiced]
- display :: IO ()
- localDay :: TimeZone -> UTCTime -> Day
Documentation
recentDates :: Int -> IO () Source #
The number of date groups starting from the most recent.
searchName :: Text -> IO () Source #
randomTypes :: [Text] -> IO () Source #
Pick a random korvai with any of the given types.
realizeM :: Format.Abstraction -> Korvai.Score -> IO () Source #
realizeKon :: Int -> IO () Source #
practiced :: Int -> BPM -> IO () Source #
Mark these korvais as practiced. Using the index is awkward because it's the same type as BPM.
get :: Int -> Korvai.Score Source #
practiced db
Instances
savePracticed :: [Practiced] -> IO () Source #
loadPracticed :: IO [Practiced] Source #