HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

ModuleAgda-2.8.0.2Haskell2010

Agda.Utils.WithDefault

Potentially uninitialised Booleans.

The motivation for this small library is to distinguish between a boolean option with a default value and an option which has been set to what happens to be the default value. In one case the default can be overriden (e.g. --cubical implies --without-K) while in the other case the user has made a mistake which they need to fix.

Synopsis
  • PackageAgda-2.8.0.2
  • Exports7
  • LanguageHaskell2010
  • LicenceMIT
  • SourceWithDefault.hs
datadata WithDefault' a (b :: Bool)

We don't want to have to remember for each flag whether its default value is True or False. So we bake it into the representation: the flag's type will mention its default value as a phantom parameter.

Constructors

Instances5Eq, Show, NFData, Null, EmbPrj