define default depths for shell and server only once

This commit is contained in:
Inari Listenmaa
2025-08-02 21:46:13 +02:00
parent af09351b66
commit 3e0c0fa463
3 changed files with 33 additions and 23 deletions

View File

@@ -19,6 +19,12 @@ import Data.Char (isSpace)
import qualified PGF as H(showCId,showExpr,toATree,toTrie,Trie(..))
-- store default generation depth in a variable and use everywhere
default_depth :: Int
default_depth = 5
default_depth_str = show default_depth
extend old new = Map.union (Map.fromList new) old -- Map.union is left-biased
commonCommands :: (Monad m,MonadSIO m) => Map.Map String (CommandInfo m)