Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Solkattu.Practice

Contents

Description

Utilities to randomly select things to practice, and save what I practiced, for a flashcard-esque system.

Synopsis

Documentation

recentDates :: Int -> IO () Source #

The number of date groups starting from the most recent.

randomTypes :: [Text] -> IO () Source #

Pick a random korvai with any of the given types.

realize :: 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.

type BPM = Int Source #

practiced db

pick :: [a] -> IO (Maybe a) Source #

data Practiced Source #

Constructors

Practiced 

Fields

Instances

Instances details
Generics.Generic Practiced Source # 
Instance details

Defined in Solkattu.Practice

Associated Types

type Generics.Rep Practiced :: Type -> Type #

Show Practiced Source # 
Instance details

Defined in Solkattu.Practice

Eq Practiced Source # 
Instance details

Defined in Solkattu.Practice

FromJSON Practiced Source # 
Instance details

Defined in Solkattu.Practice

ToJSON Practiced Source # 
Instance details

Defined in Solkattu.Practice

type Generics.Rep Practiced Source # 
Instance details

Defined in Solkattu.Practice

display :: IO () Source #

Display practice record.