clanki 1.2.2 → 1.2.3
raw patch · 2 files changed
+1/−5 lines, 2 files
Files
- clanki.cabal +1/−1
- src/Main.hs +0/−4
clanki.cabal view
@@ -2,7 +2,7 @@ -- see http://haskell.org/cabal/users-guide/ name: clanki-version: 1.2.2+version: 1.2.3 synopsis: Command-line spaced-repetition software description: Command-line spaced-repetition learning software. CL (command line) + Anki (popular spaced-repetition software) = Clanki. Usage is fairly simple, just follow the instructions after running the program. Add a deck, add cards to the deck, then quiz whenever possible. The program will determine what cards need to be reviewed, using the Super Memo 2 algorithm. license: MIT
src/Main.hs view
@@ -27,9 +27,7 @@ runAction :: Maybe Action -> [Card] -> IO () runAction (Just Quit) cards = do- printf "before \n" saveData cards- printf "after \n" return () runAction (Just Add) cards = addLoop cards >>= mainLoop runAction (Just Quiz) cards = quizLoop cards >>= mainLoop@@ -86,9 +84,7 @@ | firstOptionIsDeck = if secondOptionIsNum then do- printf "Before thing \n" let numOfCardsToQuiz = read $ args !! 1- printf "After thing \n" let deckCards = cardsInDeck (head args) cards cardsToQuiz <- filterM shouldQuizCard (take numOfCardsToQuiz deckCards) quizSomeCards cardsToQuiz cards