Modulecabal-install-3.18.1.0Haskell2010
Distribution.Client.Utils.Parsec
- 2 types
- 4 values
- Packagecabal-install-3.18.1.0
- Exports6
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceParsec.hs
Flag
2 declarationsFlag' constructor, with additional phantom argument to constrain the resulting type
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 declarationsalaNubList and alaNubList' are simply NubList' constructor, with additional phantom arguments to constrain the resulting type
:t alaNubList VCatalaNubList VCat :: NubList a -> NubList' VCat (Identity a) a
:t alaNubList' FSep TokenalaNubList' FSep Token :: NubList String -> NubList' FSep Token String
unpack' (alaNubList' FSep Token) <$> eitherParsec "foo bar foo"Right ["foo","bar"]
More general version of alaNubList.
Like List for usage with a FieldGrammar, but for NubList.
Instances3Newtype, Parsec, Pretty
Newtype (NubList a) (NubList' sep wrapper a)Defined in cabal-install-3.18.1.0 · Distribution.Client.Utils.Parsec(Newtype a b, Ord a, Sep sep, Parsec b) => Parsec (NubList' sep b a)Defined in cabal-install-3.18.1.0 · Distribution.Client.Utils.Parsec(Newtype a b, Sep sep, Pretty b) => Pretty (NubList' sep b a)Defined in cabal-install-3.18.1.0 · Distribution.Client.Utils.Parsec