Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Clean up mkConf / mkConfig / mkConfigAbs naming in cardano-testnet

Aperta
#6,569 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@palas ci sta già lavorando.

Dal 4/8/2026.

  • #6637 di @palas — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Testnet.Start.Types has three functions for creating Conf values:

  • mkConf :: (HasCallStack, MonadTest m) => FilePath -> m Conf - annotates the path in test output, then calls mkConfig
  • mkConfig :: FilePath -> Conf - pure, adds trailing separator and defaults
  • mkConfigAbs :: FilePath -> IO Conf - makes path absolute, creates directory, calls mkConfig

The names do not communicate the differences.
mkConf vs mkConfig looks like a typo rather than a meaningful distinction.
mkConfigAbs conflates "make path absolute" with "run in IO".

Suggested cleanup (open to better ideas):

  • mkConfig stays as the pure core
  • mkConf becomes something like mkConfigForTest or mkConfigAnnotated to signal the MonadTest dependency
  • mkConfigAbs becomes something like mkConfigAbsolute or mkConfigIO

Or collapse them if the separate variants are not pulling their weight.

Context: Flagged by @carbolymer in https://github.com/IntersectMBO/cardano-node/pull/6346 review comments.

Lingua principale
Haskell
Stelle
3.2k
Fork
762
Merge medio
1g 23h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntersectMBO/cardano-node

Tutte le issue di IntersectMBO/cardano-node

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.