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

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

Modulecabal-install-3.18.1.0Haskell2010

Distribution.Client.Utils.Parsec

  • 2 types
  • 4 values

Flag

2 declarations
valuealaFlag :: (a -> b) -> Flag a -> Flag' b a
#

Flag' constructor, with additional phantom argument to constrain the resulting type

newtypenewtype Flag' b a
#

Like List for usage with a FieldGrammar, but for Flag. This enables to parse type aliases such as FilePath that do not have Parsec instances by using newtype variants such as FilePathNT. For example, if you need to parse a 'Flag FilePath', you can use alaFlag FilePathNT'.

Instances3Newtype, Parsec, Pretty
  • Newtype (Flag a) (Flag' wrapper a)Defined in cabal-install-3.18.1.0 · Distribution.Client.Utils.Parsec
  • (Newtype a b, Parsec b) => Parsec (Flag' b a)Defined in cabal-install-3.18.1.0 · Distribution.Client.Utils.Parsec
  • (Newtype a b, Pretty b) => Pretty (Flag' b a)Defined in cabal-install-3.18.1.0 · Distribution.Client.Utils.Parsec

NubList

3 declarations
valuealaNubList :: sep -> NubList a -> NubList' sep (Identity a) a
#

alaNubList and alaNubList' are simply NubList' constructor, with additional phantom arguments to constrain the resulting type

Example1 expression
:t alaNubList VCatalaNubList VCat :: NubList a -> NubList' VCat (Identity a) a
Example1 expression
:t alaNubList' FSep TokenalaNubList' FSep Token  :: NubList String -> NubList' FSep Token String
Example1 expression
unpack' (alaNubList' FSep Token) <$> eitherParsec "foo bar foo"Right ["foo","bar"]
newtypenewtype NubList' sep b a
#

Like List for usage with a FieldGrammar, but for NubList.

Instances3Newtype, Parsec, Pretty

Newtype wrappers

0 declarations