Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

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
Eq Practiced # 
Instance details

Defined in Solkattu.Practice

Show Practiced # 
Instance details

Defined in Solkattu.Practice

Generics.Generic Practiced # 
Instance details

Defined in Solkattu.Practice

Associated Types

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

ToJSON Practiced # 
Instance details

Defined in Solkattu.Practice

FromJSON Practiced # 
Instance details

Defined in Solkattu.Practice

type Generics.Rep Practiced # 
Instance details

Defined in Solkattu.Practice

type BPM = Int Source #

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