Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

Solkattu.Practice

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.

data Practiced Source #

Constructors

Practiced 

Fields

Instances

Instances details
FromJSON Practiced Source # 
Instance details

Defined in Solkattu.Practice

ToJSON Practiced Source # 
Instance details

Defined in Solkattu.Practice

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

type Generics.Rep Practiced Source # 
Instance details

Defined in Solkattu.Practice

type BPM = Int Source #

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