Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Core
Synopsis
- type WordGenerator = StdGen -> (Text, StdGen)
- data CourseStore = CourseStore {}
- data CourseCollection = CourseCollection {}
- data Course = Course {
- courseId :: Text
- courseTitle :: Text
- courseShortDescription :: Text
- courseLongDescription :: Maybe Pandoc
- courseCredits :: Maybe Pandoc
- courseStyle :: CourseStyle
- courseDictionary :: Dictionary
- courseLessons :: [Lesson]
- data CourseStyle = CourseStyle {}
- data Lesson = Lesson {
- lessonTitle :: Text
- lessonExercises :: ExerciseGenerator
- lessonLecture :: Maybe Pandoc
- lessonPlan :: Maybe Pandoc
- lessonVocabulary :: Maybe Vocabulary
- data Vocabulary = Vocabulary {
- vocabularyBrivlaList :: [Text]
- vocabularyCmavoList :: [Text]
- vocabularyCmevlaList :: [Text]
- data DeckStore = DeckStore {}
- data Deck = Deck {
- deckId :: Text
- deckTitle :: Text
- deckShortDescription :: Text
- deckLongDescription :: Maybe Pandoc
- deckCredits :: Maybe Pandoc
- deckDictionary :: Dictionary
- deckCards :: [Card]
- data Card = Card {}
- type Translation = ([LojbanSentence], [EnglishSentence])
- type TranslationGenerator = StdGen -> (Translation, StdGen)
- type EnglishSentence = Text
- type LojbanSentence = Text
- type TranslationsByExpression = [(Text, [Translation])]
- type TranslationGeneratorByExpression = [(Text, TranslationGenerator)]
- type SentenceComparer = LojbanSentence -> LojbanSentence -> Bool
- data PersonalizedExercise = PersonalizedExercise {}
- data Exercise
- = MultipleChoiceExercise { }
- | SingleChoiceExercise { }
- | MatchingExercise {
- mteTitle :: Text
- mteSentences :: [ExerciseSentence]
- mteItems :: [(Text, Text)]
- | TypingExercise {
- tpeTitle :: Text
- tpeSentences :: [ExerciseSentence]
- tpeValidate :: Text -> Bool
- tpeCanonicalAnswer :: Text
- type ExerciseGenerator = StdGen -> Exercise
- type MaybeExerciseGenerator = StdGen -> (Maybe Exercise, StdGen)
- data ExerciseSentence = ExerciseSentence {
- esLojbanic :: Bool
- esText :: Text
Dictionary
type WordGenerator = StdGen -> (Text, StdGen) Source #
Courses
data CourseStore Source #
Constructors
CourseStore | |
Fields |
data CourseCollection Source #
Constructors
CourseCollection | |
Fields |
Constructors
Course | |
Fields
|
data CourseStyle Source #
Constructors
CourseStyle | |
Fields |
Instances
Show CourseStyle Source # | |
Defined in Core Methods showsPrec :: Int -> CourseStyle -> ShowS # show :: CourseStyle -> String # showList :: [CourseStyle] -> ShowS # |
Constructors
Lesson | |
Fields
|
data Vocabulary Source #
Constructors
Vocabulary | |
Fields
|
Instances
Semigroup Vocabulary Source # | |
Defined in Core Methods (<>) :: Vocabulary -> Vocabulary -> Vocabulary # sconcat :: NonEmpty Vocabulary -> Vocabulary # stimes :: Integral b => b -> Vocabulary -> Vocabulary # | |
Show Vocabulary Source # | |
Defined in Core Methods showsPrec :: Int -> Vocabulary -> ShowS # show :: Vocabulary -> String # showList :: [Vocabulary] -> ShowS # |
Decks
Constructors
Deck | |
Fields
|
Constructors
Card | |
Fields |
Translations
type Translation = ([LojbanSentence], [EnglishSentence]) Source #
type TranslationGenerator = StdGen -> (Translation, StdGen) Source #
type EnglishSentence = Text Source #
type LojbanSentence = Text Source #
type TranslationsByExpression = [(Text, [Translation])] Source #
type TranslationGeneratorByExpression = [(Text, TranslationGenerator)] Source #
type SentenceComparer = LojbanSentence -> LojbanSentence -> Bool Source #
Exercises
data PersonalizedExercise Source #
Constructors
PersonalizedExercise | |
Fields |
Constructors
MultipleChoiceExercise | |
Fields
| |
SingleChoiceExercise | |
Fields | |
MatchingExercise | |
Fields
| |
TypingExercise | |
Fields
|
type ExerciseGenerator = StdGen -> Exercise Source #
type MaybeExerciseGenerator = StdGen -> (Maybe Exercise, StdGen) Source #
data ExerciseSentence Source #
Constructors
ExerciseSentence | |
Fields
|
Instances
Show ExerciseSentence Source # | |
Defined in Core Methods showsPrec :: Int -> ExerciseSentence -> ShowS # show :: ExerciseSentence -> String # showList :: [ExerciseSentence] -> ShowS # |