diff options
| author | Inari Listenmaa <inari.listenmaa@gmail.com> | 2025-08-02 22:05:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-02 22:05:29 +0200 |
| commit | c23a03a2d11a781998dc1c3de04a8abf2ff7d330 (patch) | |
| tree | 348ea475860f12439d5cdb10323812fd19ba8d88 /src/compiler/GF/Command/CommonCommands.hs | |
| parent | af09351b66802590073773c4de1022eb8db60adf (diff) | |
| parent | 183e421a0fe598d1e698015fce026fdef7f641a3 (diff) | |
Merge pull request #184 from inariksit/update-depth-documentation
Update default depth to 5 + less hardcoding in documentation
Diffstat (limited to 'src/compiler/GF/Command/CommonCommands.hs')
| -rw-r--r-- | src/compiler/GF/Command/CommonCommands.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/GF/Command/CommonCommands.hs b/src/compiler/GF/Command/CommonCommands.hs index c685fc525..f1faa258e 100644 --- a/src/compiler/GF/Command/CommonCommands.hs +++ b/src/compiler/GF/Command/CommonCommands.hs @@ -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) |
