summaryrefslogtreecommitdiff
path: root/src/GF/Shell.hs
diff options
context:
space:
mode:
authoraarne <unknown>2005-05-17 11:37:17 +0000
committeraarne <unknown>2005-05-17 11:37:17 +0000
commitb12608fb0947122fe65d9736eabf59266ad08252 (patch)
tree537a7ce7cec1a1f12fce9493f6f39da131362d8b /src/GF/Shell.hs
parent9b42aff901a3b14aaaf113098d9640e66fe9e5a2 (diff)
ml and tl
Diffstat (limited to 'src/GF/Shell.hs')
-rw-r--r--src/GF/Shell.hs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/GF/Shell.hs b/src/GF/Shell.hs
index 7dca7b066..dd08e98bd 100644
--- a/src/GF/Shell.hs
+++ b/src/GF/Shell.hs
@@ -5,9 +5,9 @@
-- Stability : (stable)
-- Portability : (portable)
--
--- > CVS $Date: 2005/05/17 11:20:25 $
--- > CVS $Author: peb $
--- > CVS $Revision: 1.37 $
+-- > CVS $Date: 2005/05/17 12:37:17 $
+-- > CVS $Author: aarne $
+-- > CVS $Revision: 1.38 $
--
-- GF shell command interpreter.
-----------------------------------------------------------------------------
@@ -232,15 +232,17 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of
CTranslationQuiz il ol -> do
warnDiscont opts
justOutput opts (teachTranslation opts (sgr il) (sgr ol)) sa
- CTranslationList il ol n -> do
- warnDiscont opts
+ CTranslationList il ol -> do
+ warnDiscont opts
+ let n = optIntOrN opts flagNumber 10
qs <- transTrainList opts (sgr il) (sgr ol) (toInteger n)
returnArg (AString $ foldr (+++++) [] [unlines (s:ss) | (s,ss) <- qs]) sa
CMorphoQuiz -> do
warnDiscont opts
justOutput opts (teachMorpho opts gro) sa
- CMorphoList n -> do
+ CMorphoList -> do
+ let n = optIntOrN opts flagNumber 10
warnDiscont opts
qs <- useIOE [] $ morphoTrainList opts gro (toInteger n)
returnArg (AString $ foldr (+++++) [] [unlines (s:ss) | (s,ss) <- qs]) sa