HORIZON HASKELLDocslts/ghc-10.0.xa8896112026-10-18Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · a889611 · 2026-10-18

Modulehnix-0.17.0Haskell2010

Nix.Parser

Main module for parsing Nix expressions.

  • 7 types
  • 1 class
  • 24 values
  • Packagehnix-0.17.0
  • Exports32
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceParser.hs
datadata NAssoc
#

Constructors

Instances7Eq, Data, Ord, Show, Generic, NFData, …
newtypenewtype NOpPrecedence
#

Constructors

Instances10Bounded, Enum, Eq, Data, Num, Ord, …
newtypenewtype NOpName
#

Constructors

Instances9Eq, Data, Ord, Show, IsString, Generic, …
datadata NSpecialOp
#

Constructors

Instances8Eq, Data, Ord, Show, Generic, NFData, …
datadata NOperatorDef
#
Instances8Eq, Data, Ord, Show, Generic, NFData, …

Nix expression algebra parser. "Expression algebra" is to explain megaparsec use of the term Expression (parser for language algebraic coperators without any statements (without let etc.)), which is essentially an algebra inside the language.

A path surrounded by angle brackets, indicating that it should be looked up in the NIX_PATH environment variable at evaluation.

classclass NOp a where
#

Class to get a private free construction to abstract away the gap between the Nix operation types NUnaryOp, NBinaryOp, NSpecialOp. And in doing remove OperatorInfo from existance.

Instances5NOp
valueappOpDef :: NOperatorDef
#

Functional application operator definition, left associative, high precedence.