pretty-simple-2.2.0.1: pretty printer for data types with a 'Show' instance.

Copyright | (c) Dennis Gosnell 2016
License | BSD-style (see LICENSE file)
Maintainer | cdep.illabout@gmail.com
Stability | experimental
Portability | POSIX
Safe Haskell | None
Language | Haskell2010

Text.Pretty.Simple.Internal.Expr

Description

# Documentation

newtype CommaSeparated a Source #

Constructors

CommaSeparated |

Fields

- unCommaSeparated :: [a]

Instances

Eq a => Eq (CommaSeparated a) Source # |
Instance details Defined in Text.Pretty.Simple.Internal.Expr Methods (==) :: CommaSeparated a -> CommaSeparated a -> Bool Source # (/=) :: CommaSeparated a -> CommaSeparated a -> Bool Source #
Data a => Data (CommaSeparated a) Source # |

Instance details

Defined in Text.Pretty.Simple.Internal.Expr

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CommaSeparated a -> c (CommaSeparated a) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CommaSeparated a) Source #

toConstr :: CommaSeparated a -> Constr Source #

dataTypeOf :: CommaSeparated a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (CommaSeparated a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (CommaSeparated a)) Source #

gmapT :: (forall b. Data b => b -> b) -> CommaSeparated a -> CommaSeparated a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CommaSeparated a -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CommaSeparated a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> CommaSeparated a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CommaSeparated a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CommaSeparated a -> m (CommaSeparated a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CommaSeparated a -> m (CommaSeparated a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CommaSeparated a -> m (CommaSeparated a) Source #

Show a => Show (CommaSeparated a) Source # |
Instance details Defined in Text.Pretty.Simple.Internal.Expr Methods showsPrec :: Int -> CommaSeparated a -> ShowS Source # show :: CommaSeparated a -> String Source # showList :: [CommaSeparated a] -> ShowS Source #
Generic (CommaSeparated a) Source # |
Instance details Defined in Text.Pretty.Simple.Internal.Expr Associated Types type Rep (CommaSeparated a) :: Type -> Type Source # Methods from :: CommaSeparated a -> Rep (CommaSeparated a) x Source # to :: Rep (CommaSeparated a) x -> CommaSeparated a Source #
type Rep (CommaSeparated a) Source # |
Instance details Defined in Text.Pretty.Simple.Internal.Expr type Rep (CommaSeparated a) = D1 (MetaData "CommaSeparated" "Text.Pretty.Simple.Internal.Expr" "pretty-simple-2.2.0.1-8wtVJ8ANI1Y6MXsZeB7gq0" True) (C1 (MetaCons "CommaSeparated" PrefixI True) (S1 (MetaSel (Just "unCommaSeparated") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [a])))

data Expr Source #

Constructors

Brackets !(CommaSeparated [Expr]) |
Braces !(CommaSeparated [Expr]) |
Parens !(CommaSeparated [Expr]) |
StringLit !String |
Other !String |

Instances

Eq Expr Source # |
Instance details Defined in Text.Pretty.Simple.Internal.Expr Methods (==) :: Expr -> Expr -> Bool Source # (/=) :: Expr -> Expr -> Bool Source #
Data Expr Source # |

Instance details

Defined in Text.Pretty.Simple.Internal.Expr

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Expr -> c Expr Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Expr Source #

toConstr :: Expr -> Constr Source #

dataTypeOf :: Expr -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Expr) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Expr) Source #

gmapT :: (forall b. Data b => b -> b) -> Expr -> Expr Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Expr -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Expr -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Expr -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Expr -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Expr -> m Expr Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Expr -> m Expr Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Expr -> m Expr Source #

Show Expr Source # |
Instance details Defined in Text.Pretty.Simple.Internal.Expr Methods showsPrec :: Int -> Expr -> ShowS Source # show :: Expr -> String Source # showList :: [Expr] -> ShowS Source #
Generic Expr Source # |
Instance details Defined in Text.Pretty.Simple.Internal.Expr Associated Types type Rep Expr :: Type -> Type Source # Methods from :: Expr -> Rep Expr x Source # to :: Rep Expr x -> Expr Source #
type Rep Expr Source # |

Instance details

Defined in Text.Pretty.Simple.Internal.Expr

type Rep Expr = D1 (MetaData "Expr" "Text.Pretty.Simple.Internal.Expr" "pretty-simple-2.2.0.1-8wtVJ8ANI1Y6MXsZeB7gq0" False) ((C1 (MetaCons "Brackets" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (CommaSeparated [Expr]))) :+: C1 (MetaCons "Braces" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (CommaSeparated [Expr])))) :+: (C1 (MetaCons "Parens" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (CommaSeparated [Expr]))) :+: (C1 (MetaCons "StringLit" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String)) :+: C1 (MetaCons "Other" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 String)))))