Skip to content

Commit b8118ff

Browse files
committed
wip
1 parent 59a194b commit b8118ff

7 files changed

Lines changed: 542 additions & 90 deletions

File tree

.serena/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/cache
2+
/project.local.yml

.serena/project.yml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
# the name by which the project can be referenced within Serena/when chatting with the LLM.
2+
project_name: "cardano-node"
3+
4+
# list of languages for which language servers are started (LSP backend only); choose from:
5+
# ada al angular ansible bash
6+
# bsl clojure cpp cpp_ccls crystal
7+
# csharp csharp_omnisharp cue dart elixir
8+
# elm erlang fortran fsharp gdscript
9+
# go groovy haskell haxe hlsl
10+
# html java json julia kotlin
11+
# latex lean4 lua luau markdown
12+
# matlab msl nix ocaml pascal
13+
# perl php php_phpactor php_phpantom powershell
14+
# python python_jedi python_pyrefly python_ty r
15+
# rego ruby ruby_solargraph rust scala
16+
# scss solidity svelte swift systemverilog
17+
# terraform toml typescript typescript_vts vue
18+
# yaml zig
19+
# (This list may be outdated; generated with scripts/print_language_list.py;
20+
# For the current list, see values of Language enum here:
21+
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py)
22+
# For some languages, there are alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
23+
# Note:
24+
# - For C, use cpp
25+
# - For JavaScript, use typescript
26+
# - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
27+
# - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
28+
# - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
29+
# - For Free Pascal/Lazarus, use pascal
30+
# Special requirements:
31+
# Some languages require additional setup/installations.
32+
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
33+
# When using multiple languages, the first language server that supports a given file will be used for that file.
34+
# The first language is the default language and the respective language server will be used as a fallback.
35+
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
36+
languages:
37+
- haskell
38+
39+
# the encoding used by text files in the project
40+
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
41+
encoding: "utf-8"
42+
43+
# optional shell command to run before the language backend (LSP or JetBrains) is initialised.
44+
# the command runs in the project root directory and is only executed if the project is trusted
45+
# (see trusted_project_path_patterns in the global configuration).
46+
# serena waits for the command to exit: a non-zero exit code is logged as an error but does not
47+
# abort activation. a per-project timeout (activation_command_timeout, default 180s) is the safety
48+
# backstop for non-terminating commands; on expiry the process is killed and activation continues.
49+
# example: activation_command: "npx nx run-many -t build"
50+
activation_command:
51+
52+
# maximum time in seconds to wait for activation_command to complete before killing it (default 180s).
53+
# must be a positive number.
54+
activation_command_timeout: 180
55+
56+
# line ending convention to use when writing source files.
57+
# Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
58+
# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
59+
line_ending:
60+
61+
# The language backend to use for this project.
62+
# If not set, the global setting from serena_config.yml is used.
63+
# Valid values: LSP, JetBrains
64+
# Note: the backend is fixed at startup. If a project with a different backend
65+
# is activated post-init, an error will be returned.
66+
language_backend:
67+
68+
# whether to use project's .gitignore files to ignore files
69+
ignore_all_files_in_gitignore: true
70+
71+
# advanced configuration option allowing to configure language server-specific options.
72+
# Maps the language key to the options.
73+
# The settings are considered only if the project is trusted (see global configuration to define trusted projects).
74+
# See https://oraios.github.io/serena/02-usage/050_configuration.html#language-server-specific-settings
75+
ls_specific_settings: {}
76+
77+
# list of workspace folder paths (LSP backend only).
78+
# These folders will be used to build up Serena's symbol index.
79+
# Paths must be within the project root and should thus be relative to the project root.
80+
# Furthermore, the paths should not be filtered by ignore settings.
81+
# Default setting: The entire project root folder (".") is considered.
82+
# In (large) monorepos, this can be used to index only subfolders of the project root, e.g.
83+
# ls_workspace_folders:
84+
# - "./subproject1"
85+
# - "./subproject2"
86+
ls_workspace_folders: ["."]
87+
88+
# list of additional workspace folder paths for cross-package reference support.
89+
# Paths can be absolute or relative to the project root.
90+
# Each folder is registered as an LSP workspace folder, enabling language servers to discover
91+
# symbols and references across package boundaries, but these folders are not indexed by Serena,
92+
# i.e. the respective symbols will not be found using Serena's symbol search tools.
93+
# Example:
94+
# additional_workspace_folders:
95+
# - ../sibling-package
96+
# - ../shared-lib
97+
ls_additional_workspace_folders: []
98+
99+
# list of additional paths to ignore in this project.
100+
# Same syntax as gitignore, so you can use * and **.
101+
# Note: global ignored_paths from serena_config.yml are also applied additively.
102+
ignored_paths: []
103+
104+
# whether the project is in read-only mode
105+
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
106+
# Added on 2025-04-18
107+
read_only: false
108+
109+
# list of tool names to exclude.
110+
# This extends the existing exclusions (e.g. from the global configuration)
111+
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
112+
excluded_tools: []
113+
114+
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
115+
# This extends the existing inclusions (e.g. from the global configuration).
116+
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
117+
included_optional_tools: []
118+
119+
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
120+
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
121+
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
122+
fixed_tools: []
123+
124+
# list of mode names that are to be activated by default, overriding the setting in the global configuration.
125+
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
126+
# If the setting is undefined/empty, the default_modes from the global configuration (serena_config.yml) apply.
127+
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
128+
# Therefore, you can set this to [] if you do not want the default modes defined in the global config to apply
129+
# for this project.
130+
# This setting can, in turn, be overridden by CLI parameters (--mode).
131+
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
132+
default_modes:
133+
134+
# list of mode names to be activated additionally for this project, e.g. ["query-projects"]
135+
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
136+
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
137+
added_modes:
138+
139+
# initial prompt for the project. It will always be given to the LLM upon activating the project
140+
# (contrary to the memories, which are loaded on demand).
141+
initial_prompt: ""
142+
143+
# time budget (seconds) per tool call for the retrieval of additional symbol information
144+
# such as docstrings or parameter information.
145+
# This overrides the corresponding setting in the global configuration; see the documentation there.
146+
# If null or missing, use the setting from the global configuration.
147+
symbol_info_budget:
148+
149+
# list of regex patterns which, when matched, mark a memory entry as read‑only.
150+
# Extends the list from the global configuration, merging the two lists.
151+
read_only_memory_patterns: []
152+
153+
# list of regex patterns for memories to completely ignore.
154+
# Matching memories will not appear in list_memories or activate_project output
155+
# and cannot be accessed via read_memory or write_memory.
156+
# To access ignored memory files, use the read_file tool on the raw file path.
157+
# Extends the list from the global configuration, merging the two lists.
158+
# Example: ["_archive/.*", "_episodes/.*"]
159+
ignored_memory_patterns: []

cardano-testnet/src/Testnet/Start/Cardano.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ import Ouroboros.Network.PeerSelection.RelayAccessPoint (RelayAccessPo
5050
import Prelude hiding (lines)
5151

5252
import Control.Concurrent (myThreadId, threadDelay)
53-
import Control.Monad (forM, forM_, guard, unless, when)
54-
import Control.Monad.Trans.Maybe (runMaybeT)
5553
import Control.Exception (IOException)
5654
import Control.Monad (forM, forM_, guard, unless, when)
5755
import Control.Monad.Catch

0 commit comments

Comments
 (0)