| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
CssParser
Synopsis
- parseCss :: String -> CssFile
- parseCssP :: String -> P CssFile
- alex :: String -> Either String [TokenLoc]
- getToken :: TokenLoc -> Token
- module CssParser.At.MediaQuery
- module CssParser.File
- module CssParser.Ident
- module CssParser.Parser.Monad
- module CssParser.Rule.TypedNum
- module CssParser.Rule.Value
- module CssParser.Show
- hasOuterParens :: FeatureQuery s -> Bool
- cssParser :: [TokenLoc] -> P CssFile
- mkUnknownPseudoF :: AtomicPseudoClass -> SelectorList -> P TagSubSelector
- pattern FqApp :: FqFun s -> FeatureQuery s
- pattern FqBop :: BinOp -> FeatureQuery s -> FeatureQuery s -> FeatureQuery s
- pattern FqMediaFeature :: MediaFeature -> FeatureQuery s
- pattern FqNot :: FeatureQuery s -> FeatureQuery s
- pattern FqParen :: FeatureQuery s -> FeatureQuery s
- data FqFun s
- class Norm a where
- normalize :: a -> a
- data AtRule
- = CharsetStmt Charset
- | ColorProfile PropertyName [CssRuleBodyItem]
- | Container ContainerQueryMap [CssRuleBodyItem]
- | CounterStyle Ident [CssRuleBodyItem]
- | CustomMedia Var CustomMediaQuery
- | FontFaceBlock [CssRuleBodyItem]
- | FontFeatureValuesBlock FontFeatureValues
- | FontPaletteValuesBlock FontPaletteValues
- | FunctionBlock CssFunction
- | ImportStmt (Import SelectorList)
- | Keyframes KeyframeSet
- | LayerBlock (Maybe LayerName) [CssRuleBodyItem]
- | LayerStmt (NonEmpty LayerName)
- | MediaRule MediaQueryList [CssRuleBodyItem]
- | Mixin Ident
- | CustomSelector CustomSelectorName SelectorList
- | DefineMixin Ident [CssRuleBodyItem]
- | Page PageSelectorList [CssRuleBodyItem]
- | PageMarginBlock PageMargin [CssRuleBodyItem]
- | PositionTry Var [PropEntry]
- | Property Var [CssRuleBodyItem]
- | ScopeBlock (MonoPair SelectorList) [CssRuleBodyItem]
- | StartingStyle [CssRuleBodyItem]
- | Supports FeatureQuery [CssRuleBodyItem]
- | UnknownGramma Ident (Maybe CommaSeparatedList) [CssRuleBodyItem]
- | ViewTransition [CssRuleBodyItem]
- data AtrPat
- data AttrOp
- data CompositePe
- = AtomicPe PseudoElement
- | Highlight (Embraced Ident)
- | Part (Embraced (SslNe Ident))
- | Picker (Embraced Ident)
- | ScrollButton (Embraced TagName)
- | Slotted (Embraced SelectorList)
- | ViewTransitionGroup (Embraced SelectorList)
- | ViewTransitionImagePair (Embraced SelectorList)
- | ViewTransitionNew (Embraced SelectorList)
- | ViewTransitionOld (Embraced SelectorList)
- type CssFunction = Function CssRule
- data CssRule
- data CssRuleBodyItem
- type FeatureQuery = FeatureQuery SelectorList
- data PseudeTagSelector = PseudeTagSelector {}
- data Selector
- type SelectorList = NonEmpty Selector
- data TagRelation
- data TagSelector = TagSelector {}
- data TagSubSelector
- = AtomicClass { }
- | AtomicPseudoClass AtomicPseudoClass
- | UnknownPseudoF Ident SelectorList
- | NotClass SelectorList
- | Lang Language
- | Global SelectorList
- | Where SelectorList
- | Has SelectorList
- | Is SelectorList
- | NthChild NthFormula (Maybe TagSelector)
- | NthLastChild NthFormula (Maybe TagSelector)
- | NthLastOfType NthFormula
- | NthOfType NthFormula
- | ActiveViewTransitionType (Embraced (CslNe Ident))
- | Dir (Embraced Ident)
- | Heading (Embraced (CslNe Unsigned))
- | Host (Embraced SelectorList)
- | State (Embraced Ident)
- | HasAttr AttrName
- | Attr AttrName AttrOp (Maybe AtrPat)
- | Hash Ident
- data NonEmpty a = a :| [a]
Documentation
module CssParser.At.MediaQuery
module CssParser.File
module CssParser.Ident
module CssParser.Parser.Monad
module CssParser.Rule.TypedNum
module CssParser.Rule.Value
module CssParser.Show
hasOuterParens :: FeatureQuery s -> Bool Source #
pattern FqApp :: FqFun s -> FeatureQuery s Source #
pattern FqBop :: BinOp -> FeatureQuery s -> FeatureQuery s -> FeatureQuery s Source #
pattern FqMediaFeature :: MediaFeature -> FeatureQuery s Source #
pattern FqNot :: FeatureQuery s -> FeatureQuery s Source #
pattern FqParen :: FeatureQuery s -> FeatureQuery s Source #
Constructors
| FqSelectorFun s | |
| FqSomeFun Ident PropVals |
Instances
Minimal complete definition
Nothing
Methods
Instances
| Norm LText Source # | |
| Norm Text Source # | |
| Norm Integer Source # | |
| Norm () Source # | |
Defined in CssParser.Norm | |
| Norm (FeatureQuery s) Source # | |
Defined in CssParser.At.Supports Methods normalize :: FeatureQuery s -> FeatureQuery s Source # | |
| Norm a => Norm (NonEmpty a) Source # | |
| Norm a => Norm (Maybe a) Source # | |
| Norm a => Norm [a] Source # | |
Defined in CssParser.Norm | |
Constructors
| CharsetStmt Charset | |
| ColorProfile PropertyName [CssRuleBodyItem] | |
| Container ContainerQueryMap [CssRuleBodyItem] | |
| CounterStyle Ident [CssRuleBodyItem] | |
| CustomMedia Var CustomMediaQuery | |
| FontFaceBlock [CssRuleBodyItem] | |
| FontFeatureValuesBlock FontFeatureValues | |
| FontPaletteValuesBlock FontPaletteValues | |
| FunctionBlock CssFunction | |
| ImportStmt (Import SelectorList) | |
| Keyframes KeyframeSet | |
| LayerBlock (Maybe LayerName) [CssRuleBodyItem] | |
| LayerStmt (NonEmpty LayerName) | |
| MediaRule MediaQueryList [CssRuleBodyItem] | |
| Mixin Ident | |
| CustomSelector CustomSelectorName SelectorList | |
| DefineMixin Ident [CssRuleBodyItem] | |
| Page PageSelectorList [CssRuleBodyItem] | |
| PageMarginBlock PageMargin [CssRuleBodyItem] | |
| PositionTry Var [PropEntry] | |
| Property Var [CssRuleBodyItem] | |
| ScopeBlock (MonoPair SelectorList) [CssRuleBodyItem] | |
| StartingStyle [CssRuleBodyItem] | |
| Supports FeatureQuery [CssRuleBodyItem] | |
| UnknownGramma Ident (Maybe CommaSeparatedList) [CssRuleBodyItem] | |
| ViewTransition [CssRuleBodyItem] |
Instances
| CssShow AtRule Source # | |||||
| Generic AtRule Source # | |||||
Defined in CssParser.Rule Associated Types
| |||||
| Show AtRule Source # | |||||
| Eq AtRule Source # | |||||
| Ord AtRule Source # | |||||
| type Rep AtRule Source # | |||||
Defined in CssParser.Rule type Rep AtRule = D1 ('MetaData "AtRule" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) ((((C1 ('MetaCons "CharsetStmt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Charset)) :+: (C1 ('MetaCons "ColorProfile" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PropertyName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: C1 ('MetaCons "Container" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContainerQueryMap) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])))) :+: (C1 ('MetaCons "CounterStyle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ident) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: (C1 ('MetaCons "CustomMedia" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Var) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CustomMediaQuery)) :+: C1 ('MetaCons "FontFaceBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem]))))) :+: ((C1 ('MetaCons "FontFeatureValuesBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FontFeatureValues)) :+: (C1 ('MetaCons "FontPaletteValuesBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FontPaletteValues)) :+: C1 ('MetaCons "FunctionBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CssFunction)))) :+: ((C1 ('MetaCons "ImportStmt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Import SelectorList))) :+: C1 ('MetaCons "Keyframes" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 KeyframeSet))) :+: (C1 ('MetaCons "LayerBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LayerName)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: C1 ('MetaCons "LayerStmt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty LayerName))))))) :+: (((C1 ('MetaCons "MediaRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MediaQueryList) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: (C1 ('MetaCons "Mixin" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ident)) :+: C1 ('MetaCons "CustomSelector" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CustomSelectorName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SelectorList)))) :+: ((C1 ('MetaCons "DefineMixin" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ident) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: C1 ('MetaCons "Namespace" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Ident)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source))) :+: (C1 ('MetaCons "Page" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageSelectorList) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: C1 ('MetaCons "PageMarginBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageMargin) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem]))))) :+: ((C1 ('MetaCons "PositionTry" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Var) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PropEntry])) :+: (C1 ('MetaCons "Property" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Var) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: C1 ('MetaCons "ScopeBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MonoPair SelectorList)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])))) :+: ((C1 ('MetaCons "StartingStyle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: C1 ('MetaCons "Supports" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FeatureQuery) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem]))) :+: (C1 ('MetaCons "UnknownGramma" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ident) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CommaSeparatedList)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem]))) :+: C1 ('MetaCons "ViewTransition" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem]))))))) | |||||
Constructors
| StrAtrPat Text (Maybe CaseSensetivity) | |
| IdtAtrPat Ident (Maybe CaseSensetivity) |
Instances
| CssShow AtrPat Source # | |||||
| Generic AtrPat Source # | |||||
Defined in CssParser.Rule Associated Types
| |||||
| Show AtrPat Source # | |||||
| Eq AtrPat Source # | |||||
| Ord AtrPat Source # | |||||
| type Rep AtrPat Source # | |||||
Defined in CssParser.Rule type Rep AtrPat = D1 ('MetaData "AtrPat" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) (C1 ('MetaCons "StrAtrPat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CaseSensetivity))) :+: C1 ('MetaCons "IdtAtrPat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ident) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CaseSensetivity)))) | |||||
Constructors
| Exact | exactly the value of the value, denoted with |
| Include | whitespace separated list of items, one of these items is the value, denoted with |
| DashMatch | hyphen separated list of items, the first item is the value, denoted with |
| PrefixMatch | prefix of the value in the attribute, denoted with |
| SuffixMatch | suffix of the value in the attribute, denoted with |
| SubstringMatch | substring of the value in the attribute, denoted with |
Instances
| CssShow AttrOp Source # | |||||
| Bounded AttrOp Source # | |||||
| Enum AttrOp Source # | |||||
Defined in CssParser.Rule | |||||
| Generic AttrOp Source # | |||||
Defined in CssParser.Rule Associated Types
| |||||
| Show AttrOp Source # | |||||
| Eq AttrOp Source # | |||||
| Ord AttrOp Source # | |||||
| type Rep AttrOp Source # | |||||
Defined in CssParser.Rule type Rep AttrOp = D1 ('MetaData "AttrOp" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) ((C1 ('MetaCons "Exact" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Include" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DashMatch" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "PrefixMatch" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SuffixMatch" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SubstringMatch" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
data CompositePe Source #
Constructors
| AtomicPe PseudoElement | |
| Highlight (Embraced Ident) | |
| Part (Embraced (SslNe Ident)) | |
| Picker (Embraced Ident) | |
| ScrollButton (Embraced TagName) | |
| Slotted (Embraced SelectorList) | |
| ViewTransitionGroup (Embraced SelectorList) | |
| ViewTransitionImagePair (Embraced SelectorList) | |
| ViewTransitionNew (Embraced SelectorList) | |
| ViewTransitionOld (Embraced SelectorList) |
Instances
| CssShow CompositePe Source # | |||||
Defined in CssParser.Rule.Show Methods toCssText :: CompositePe -> LText Source # | |||||
| Generic CompositePe Source # | |||||
Defined in CssParser.Rule Associated Types
| |||||
| Show CompositePe Source # | |||||
Defined in CssParser.Rule Methods showsPrec :: Int -> CompositePe -> ShowS # show :: CompositePe -> String # showList :: [CompositePe] -> ShowS # | |||||
| Eq CompositePe Source # | |||||
Defined in CssParser.Rule | |||||
| Ord CompositePe Source # | |||||
Defined in CssParser.Rule Methods compare :: CompositePe -> CompositePe -> Ordering # (<) :: CompositePe -> CompositePe -> Bool # (<=) :: CompositePe -> CompositePe -> Bool # (>) :: CompositePe -> CompositePe -> Bool # (>=) :: CompositePe -> CompositePe -> Bool # max :: CompositePe -> CompositePe -> CompositePe # min :: CompositePe -> CompositePe -> CompositePe # | |||||
| type Rep CompositePe Source # | |||||
Defined in CssParser.Rule type Rep CompositePe = D1 ('MetaData "CompositePe" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) (((C1 ('MetaCons "AtomicPe" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PseudoElement)) :+: C1 ('MetaCons "Highlight" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced Ident)))) :+: (C1 ('MetaCons "Part" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced (SslNe Ident)))) :+: (C1 ('MetaCons "Picker" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced Ident))) :+: C1 ('MetaCons "ScrollButton" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced TagName)))))) :+: ((C1 ('MetaCons "Slotted" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced SelectorList))) :+: C1 ('MetaCons "ViewTransitionGroup" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced SelectorList)))) :+: (C1 ('MetaCons "ViewTransitionImagePair" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced SelectorList))) :+: (C1 ('MetaCons "ViewTransitionNew" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced SelectorList))) :+: C1 ('MetaCons "ViewTransitionOld" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced SelectorList))))))) | |||||
type CssFunction = Function CssRule Source #
Constructors
| CssRule SelectorList [CssRuleBodyItem] | |
| AtRule BrowserPrefix AtRule |
Instances
| CssShow CssRule Source # | |||||
| Generic CssRule Source # | |||||
Defined in CssParser.Rule Associated Types
| |||||
| Show CssRule Source # | |||||
| Eq CssRule Source # | |||||
| Ord CssRule Source # | |||||
| ShowSpaceBetween CssRule CssRule Source # | |||||
| type Rep CssRule Source # | |||||
Defined in CssParser.Rule type Rep CssRule = D1 ('MetaData "CssRule" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) (C1 ('MetaCons "CssRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SelectorList) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CssRuleBodyItem])) :+: C1 ('MetaCons "AtRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BrowserPrefix) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AtRule))) | |||||
data CssRuleBodyItem Source #
Constructors
| CssLeafRule Descriptor PropVals | |
| CssEnumLeaf Descriptor PropValsList | |
| CssNestedRule CssRule |
Instances
| CssShow CssRuleBodyItem Source # | |||||
Defined in CssParser.Rule.Show Methods toCssText :: CssRuleBodyItem -> LText Source # | |||||
| Generic CssRuleBodyItem Source # | |||||
Defined in CssParser.Rule Associated Types
Methods from :: CssRuleBodyItem -> Rep CssRuleBodyItem x # to :: Rep CssRuleBodyItem x -> CssRuleBodyItem # | |||||
| Show CssRuleBodyItem Source # | |||||
Defined in CssParser.Rule Methods showsPrec :: Int -> CssRuleBodyItem -> ShowS # show :: CssRuleBodyItem -> String # showList :: [CssRuleBodyItem] -> ShowS # | |||||
| Eq CssRuleBodyItem Source # | |||||
Defined in CssParser.Rule Methods (==) :: CssRuleBodyItem -> CssRuleBodyItem -> Bool # (/=) :: CssRuleBodyItem -> CssRuleBodyItem -> Bool # | |||||
| Ord CssRuleBodyItem Source # | |||||
Defined in CssParser.Rule Methods compare :: CssRuleBodyItem -> CssRuleBodyItem -> Ordering # (<) :: CssRuleBodyItem -> CssRuleBodyItem -> Bool # (<=) :: CssRuleBodyItem -> CssRuleBodyItem -> Bool # (>) :: CssRuleBodyItem -> CssRuleBodyItem -> Bool # (>=) :: CssRuleBodyItem -> CssRuleBodyItem -> Bool # max :: CssRuleBodyItem -> CssRuleBodyItem -> CssRuleBodyItem # min :: CssRuleBodyItem -> CssRuleBodyItem -> CssRuleBodyItem # | |||||
| ShowSpaceBetween CssRuleBodyItem CssRuleBodyItem Source # | |||||
Defined in CssParser.Rule.Show Methods cssSpace :: forall aa bb -> (aa ~ CssRuleBodyItem, bb ~ CssRuleBodyItem) => LText Source # | |||||
| type Rep CssRuleBodyItem Source # | |||||
Defined in CssParser.Rule type Rep CssRuleBodyItem = D1 ('MetaData "CssRuleBodyItem" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) (C1 ('MetaCons "CssLeafRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Descriptor) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PropVals)) :+: (C1 ('MetaCons "CssEnumLeaf" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Descriptor) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PropValsList)) :+: C1 ('MetaCons "CssNestedRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CssRule)))) | |||||
type FeatureQuery = FeatureQuery SelectorList Source #
data PseudeTagSelector Source #
Constructors
| PseudeTagSelector | |
Fields
| |
Instances
| CssShow PseudeTagSelector Source # | |||||
Defined in CssParser.Rule.Show Methods toCssText :: PseudeTagSelector -> LText Source # | |||||
| Generic PseudeTagSelector Source # | |||||
Defined in CssParser.Rule Associated Types
Methods from :: PseudeTagSelector -> Rep PseudeTagSelector x # to :: Rep PseudeTagSelector x -> PseudeTagSelector # | |||||
| Show PseudeTagSelector Source # | |||||
Defined in CssParser.Rule Methods showsPrec :: Int -> PseudeTagSelector -> ShowS # show :: PseudeTagSelector -> String # showList :: [PseudeTagSelector] -> ShowS # | |||||
| Eq PseudeTagSelector Source # | |||||
Defined in CssParser.Rule Methods (==) :: PseudeTagSelector -> PseudeTagSelector -> Bool # (/=) :: PseudeTagSelector -> PseudeTagSelector -> Bool # | |||||
| Ord PseudeTagSelector Source # | |||||
Defined in CssParser.Rule Methods compare :: PseudeTagSelector -> PseudeTagSelector -> Ordering # (<) :: PseudeTagSelector -> PseudeTagSelector -> Bool # (<=) :: PseudeTagSelector -> PseudeTagSelector -> Bool # (>) :: PseudeTagSelector -> PseudeTagSelector -> Bool # (>=) :: PseudeTagSelector -> PseudeTagSelector -> Bool # max :: PseudeTagSelector -> PseudeTagSelector -> PseudeTagSelector # min :: PseudeTagSelector -> PseudeTagSelector -> PseudeTagSelector # | |||||
| type Rep PseudeTagSelector Source # | |||||
Defined in CssParser.Rule type Rep PseudeTagSelector = D1 ('MetaData "PseudeTagSelector" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) (C1 ('MetaCons "PseudeTagSelector" 'PrefixI 'True) (S1 ('MetaSel ('Just "ptagName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompositePe) :*: S1 ('MetaSel ('Just "ptagSubs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TagSubSelector]))) | |||||
Constructors
| Selector (Maybe TagRelation) TagSelector [(TagRelation, TagSelector)] | |
| PeSelector (Maybe TagRelation) TagSelector [(TagRelation, TagSelector)] PseudeTagSelector | |
| PeSelectorOnly PseudeTagSelector |
Instances
| CssShow Selector Source # | |||||
| GEnum Selector Source # | |||||
Defined in CssParser.Rule | |||||
| Generic Selector Source # | |||||
Defined in CssParser.Rule Associated Types
| |||||
| Show Selector Source # | |||||
| Eq Selector Source # | |||||
| Ord Selector Source # | |||||
Defined in CssParser.Rule | |||||
| ShowSpaceBetween Selector Selector Source # | |||||
| ShowParenthesis (MonoPair SelectorList) SelectorList Source # | |||||
Defined in CssParser.Rule.Show Methods left :: forall pp tt -> (pp ~ MonoPair SelectorList, tt ~ SelectorList) => LText Source # right :: forall pp tt -> (pp ~ MonoPair SelectorList, tt ~ SelectorList) => LText Source # | |||||
| ShowSpaceBetween (MonoPair SelectorList) SelectorList Source # | |||||
Defined in CssParser.Rule.Show Methods cssSpace :: forall aa bb -> (aa ~ MonoPair SelectorList, bb ~ SelectorList) => LText Source # | |||||
| type Rep Selector Source # | |||||
Defined in CssParser.Rule type Rep Selector = D1 ('MetaData "Selector" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) (C1 ('MetaCons "Selector" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TagRelation)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TagSelector) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(TagRelation, TagSelector)]))) :+: (C1 ('MetaCons "PeSelector" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TagRelation)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TagSelector)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(TagRelation, TagSelector)]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PseudeTagSelector))) :+: C1 ('MetaCons "PeSelectorOnly" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PseudeTagSelector)))) | |||||
type SelectorList = NonEmpty Selector Source #
data TagRelation Source #
Constructors
| Descendant | |
| Child | |
| NextSibling | |
| GeneralSibling |
Instances
| CssShow TagRelation Source # | |||||
Defined in CssParser.Rule.Show Methods toCssText :: TagRelation -> LText Source # | |||||
| Bounded TagRelation Source # | |||||
Defined in CssParser.Rule | |||||
| Enum TagRelation Source # | |||||
Defined in CssParser.Rule Methods succ :: TagRelation -> TagRelation # pred :: TagRelation -> TagRelation # toEnum :: Int -> TagRelation # fromEnum :: TagRelation -> Int # enumFrom :: TagRelation -> [TagRelation] # enumFromThen :: TagRelation -> TagRelation -> [TagRelation] # enumFromTo :: TagRelation -> TagRelation -> [TagRelation] # enumFromThenTo :: TagRelation -> TagRelation -> TagRelation -> [TagRelation] # | |||||
| Generic TagRelation Source # | |||||
Defined in CssParser.Rule Associated Types
| |||||
| Show TagRelation Source # | |||||
Defined in CssParser.Rule Methods showsPrec :: Int -> TagRelation -> ShowS # show :: TagRelation -> String # showList :: [TagRelation] -> ShowS # | |||||
| Eq TagRelation Source # | |||||
Defined in CssParser.Rule | |||||
| Ord TagRelation Source # | |||||
Defined in CssParser.Rule Methods compare :: TagRelation -> TagRelation -> Ordering # (<) :: TagRelation -> TagRelation -> Bool # (<=) :: TagRelation -> TagRelation -> Bool # (>) :: TagRelation -> TagRelation -> Bool # (>=) :: TagRelation -> TagRelation -> Bool # max :: TagRelation -> TagRelation -> TagRelation # min :: TagRelation -> TagRelation -> TagRelation # | |||||
| type Rep TagRelation Source # | |||||
Defined in CssParser.Rule type Rep TagRelation = D1 ('MetaData "TagRelation" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) ((C1 ('MetaCons "Descendant" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Child" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NextSibling" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GeneralSibling" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data TagSelector Source #
Constructors
| TagSelector | |
Fields
| |
Instances
| CssShow TagSelector Source # | |||||
Defined in CssParser.Rule.Show Methods toCssText :: TagSelector -> LText Source # | |||||
| Generic TagSelector Source # | |||||
Defined in CssParser.Rule Associated Types
| |||||
| Show TagSelector Source # | |||||
Defined in CssParser.Rule Methods showsPrec :: Int -> TagSelector -> ShowS # show :: TagSelector -> String # showList :: [TagSelector] -> ShowS # | |||||
| Eq TagSelector Source # | |||||
Defined in CssParser.Rule | |||||
| Ord TagSelector Source # | |||||
Defined in CssParser.Rule Methods compare :: TagSelector -> TagSelector -> Ordering # (<) :: TagSelector -> TagSelector -> Bool # (<=) :: TagSelector -> TagSelector -> Bool # (>) :: TagSelector -> TagSelector -> Bool # (>=) :: TagSelector -> TagSelector -> Bool # max :: TagSelector -> TagSelector -> TagSelector # min :: TagSelector -> TagSelector -> TagSelector # | |||||
| type Rep TagSelector Source # | |||||
Defined in CssParser.Rule type Rep TagSelector = D1 ('MetaData "TagSelector" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) (C1 ('MetaCons "TagSelector" 'PrefixI 'True) (S1 ('MetaSel ('Just "tagNs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Namespace) :*: (S1 ('MetaSel ('Just "tagName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TagName) :*: S1 ('MetaSel ('Just "tagSubSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TagSubSelector])))) | |||||
data TagSubSelector Source #
Constructors
| AtomicClass | |
| AtomicPseudoClass AtomicPseudoClass | |
| UnknownPseudoF Ident SelectorList | |
| NotClass SelectorList | |
| Lang Language | |
| Global SelectorList | |
| Where SelectorList | |
| Has SelectorList | |
| Is SelectorList | |
| NthChild NthFormula (Maybe TagSelector) | |
| NthLastChild NthFormula (Maybe TagSelector) | |
| NthLastOfType NthFormula | |
| NthOfType NthFormula | |
| ActiveViewTransitionType (Embraced (CslNe Ident)) | |
| Dir (Embraced Ident) | |
| Heading (Embraced (CslNe Unsigned)) | |
| Host (Embraced SelectorList) | |
| State (Embraced Ident) | |
| HasAttr AttrName | |
| Attr AttrName AttrOp (Maybe AtrPat) | |
| Hash Ident | |
Instances
| CssShow TagSubSelector Source # | |||||
Defined in CssParser.Rule.Show Methods toCssText :: TagSubSelector -> LText Source # | |||||
| Generic TagSubSelector Source # | |||||
Defined in CssParser.Rule Associated Types
Methods from :: TagSubSelector -> Rep TagSubSelector x # to :: Rep TagSubSelector x -> TagSubSelector # | |||||
| Show TagSubSelector Source # | |||||
Defined in CssParser.Rule Methods showsPrec :: Int -> TagSubSelector -> ShowS # show :: TagSubSelector -> String # showList :: [TagSubSelector] -> ShowS # | |||||
| Eq TagSubSelector Source # | |||||
Defined in CssParser.Rule Methods (==) :: TagSubSelector -> TagSubSelector -> Bool # (/=) :: TagSubSelector -> TagSubSelector -> Bool # | |||||
| Ord TagSubSelector Source # | |||||
Defined in CssParser.Rule Methods compare :: TagSubSelector -> TagSubSelector -> Ordering # (<) :: TagSubSelector -> TagSubSelector -> Bool # (<=) :: TagSubSelector -> TagSubSelector -> Bool # (>) :: TagSubSelector -> TagSubSelector -> Bool # (>=) :: TagSubSelector -> TagSubSelector -> Bool # max :: TagSubSelector -> TagSubSelector -> TagSubSelector # min :: TagSubSelector -> TagSubSelector -> TagSubSelector # | |||||
| ShowSpaceBetween TagSubSelector TagSubSelector Source # | |||||
Defined in CssParser.Rule.Show Methods cssSpace :: forall aa bb -> (aa ~ TagSubSelector, bb ~ TagSubSelector) => LText Source # | |||||
| type Rep TagSubSelector Source # | |||||
Defined in CssParser.Rule type Rep TagSubSelector = D1 ('MetaData "TagSubSelector" "CssParser.Rule" "css-parser-0.0.1-inplace" 'False) ((((C1 ('MetaCons "AtomicClass" 'PrefixI 'True) (S1 ('MetaSel ('Just "unClass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ident)) :+: C1 ('MetaCons "AtomicPseudoClass" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AtomicPseudoClass))) :+: (C1 ('MetaCons "UnknownPseudoF" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ident) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SelectorList)) :+: (C1 ('MetaCons "NotClass" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SelectorList)) :+: C1 ('MetaCons "Lang" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language))))) :+: ((C1 ('MetaCons "Global" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SelectorList)) :+: C1 ('MetaCons "Where" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SelectorList))) :+: (C1 ('MetaCons "Has" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SelectorList)) :+: (C1 ('MetaCons "Is" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SelectorList)) :+: C1 ('MetaCons "NthChild" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NthFormula) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TagSelector))))))) :+: (((C1 ('MetaCons "NthLastChild" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NthFormula) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TagSelector))) :+: C1 ('MetaCons "NthLastOfType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NthFormula))) :+: (C1 ('MetaCons "NthOfType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NthFormula)) :+: (C1 ('MetaCons "ActiveViewTransitionType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced (CslNe Ident)))) :+: C1 ('MetaCons "Dir" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced Ident)))))) :+: ((C1 ('MetaCons "Heading" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced (CslNe Unsigned)))) :+: (C1 ('MetaCons "Host" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced SelectorList))) :+: C1 ('MetaCons "State" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Embraced Ident))))) :+: (C1 ('MetaCons "HasAttr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttrName)) :+: (C1 ('MetaCons "Attr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttrName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttrOp) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AtrPat)))) :+: C1 ('MetaCons "Hash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ident))))))) | |||||
Non-empty (and non-strict) list type.
Since: base-4.9.0.0
Constructors
| a :| [a] infixr 5 |
Instances
| Foldable1 NonEmpty # | Since: base-4.18.0.0 | ||||
Defined in Data.Foldable1 Methods fold1 :: Semigroup m => NonEmpty m -> m # foldMap1 :: Semigroup m => (a -> m) -> NonEmpty a -> m # foldMap1' :: Semigroup m => (a -> m) -> NonEmpty a -> m # toNonEmpty :: NonEmpty a -> NonEmpty a # maximum :: Ord a => NonEmpty a -> a # minimum :: Ord a => NonEmpty a -> a # foldrMap1 :: (a -> b) -> (a -> b -> b) -> NonEmpty a -> b # foldlMap1' :: (a -> b) -> (b -> a -> b) -> NonEmpty a -> b # foldlMap1 :: (a -> b) -> (b -> a -> b) -> NonEmpty a -> b # foldrMap1' :: (a -> b) -> (a -> b -> b) -> NonEmpty a -> b # | |||||
| Eq1 NonEmpty # | Since: base-4.10.0.0 | ||||
| Ord1 NonEmpty # | Since: base-4.10.0.0 | ||||
Defined in Data.Functor.Classes | |||||
| Read1 NonEmpty # | Since: base-4.10.0.0 | ||||
Defined in Data.Functor.Classes | |||||
| Show1 NonEmpty # | Since: base-4.10.0.0 | ||||
| NFData1 NonEmpty # | Since: deepseq-1.4.3.0 | ||||
Defined in Control.DeepSeq | |||||
| GFoldable NonEmpty # | |||||
Defined in Generics.Deriving.Foldable Methods gfoldMap :: Monoid m => (a -> m) -> NonEmpty a -> m # gfold :: Monoid m => NonEmpty m -> m # gfoldr :: (a -> b -> b) -> b -> NonEmpty a -> b # gfoldr' :: (a -> b -> b) -> b -> NonEmpty a -> b # gfoldl :: (a -> b -> a) -> a -> NonEmpty b -> a # gfoldl' :: (a -> b -> a) -> a -> NonEmpty b -> a # | |||||
| GFunctor NonEmpty # | |||||
Defined in Generics.Deriving.Functor | |||||
| GTraversable NonEmpty # | |||||
Defined in Generics.Deriving.Traversable | |||||
| Applicative NonEmpty # | Since: base-4.9.0.0 | ||||
| Functor NonEmpty # | Since: base-4.9.0.0 | ||||
| Monad NonEmpty # | Since: base-4.9.0.0 | ||||
| Foldable NonEmpty # | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Data.Foldable Methods fold :: Monoid m => NonEmpty m -> m # foldMap :: Monoid m => (a -> m) -> NonEmpty a -> m # foldMap' :: Monoid m => (a -> m) -> NonEmpty a -> m # foldr :: (a -> b -> b) -> b -> NonEmpty a -> b # foldr' :: (a -> b -> b) -> b -> NonEmpty a -> b # foldl :: (b -> a -> b) -> b -> NonEmpty a -> b # foldl' :: (b -> a -> b) -> b -> NonEmpty a -> b # foldr1 :: (a -> a -> a) -> NonEmpty a -> a # foldl1 :: (a -> a -> a) -> NonEmpty a -> a # elem :: Eq a => a -> NonEmpty a -> Bool # maximum :: Ord a => NonEmpty a -> a # minimum :: Ord a => NonEmpty a -> a # | |||||
| Traversable NonEmpty # | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Data.Traversable | |||||
| Hashable1 NonEmpty # | Since: hashable-1.3.1.0 | ||||
Defined in Data.Hashable.Class | |||||
| Generic1 NonEmpty # | |||||
Defined in GHC.Internal.Generics Associated Types
| |||||
| Norm a => Norm (NonEmpty a) Source # | |||||
| (ShowSpaceBetween a a, CssShow a) => CssShow (NonEmpty a) Source # | |||||
| NFData a => NFData (NonEmpty a) # | Since: deepseq-1.4.2.0 | ||||
Defined in Control.DeepSeq | |||||
| GEnum a => GEnum (NonEmpty a) # | |||||
Defined in Generics.Deriving.Enum | |||||
| (GEq a, GEnum a, GIx a) => GIx (NonEmpty a) # | |||||
| GEq a => GEq (NonEmpty a) # | |||||
| GShow a => GShow (NonEmpty a) # | |||||
| Semigroup (NonEmpty a) # | Since: base-4.9.0.0 | ||||
| Generic (NonEmpty a) # | |||||
Defined in GHC.Internal.Generics Associated Types
| |||||
| IsList (NonEmpty a) # | Since: base-4.9.0.0 | ||||
| Read a => Read (NonEmpty a) # | Since: base-4.11.0.0 | ||||
| Show a => Show (NonEmpty a) # | Since: base-4.11.0.0 | ||||
| Eq a => Eq (NonEmpty a) # | Since: base-4.9.0.0 | ||||
| Ord a => Ord (NonEmpty a) # | Since: base-4.9.0.0 | ||||
| Hashable a => Hashable (NonEmpty a) # | |||||
Defined in Data.Hashable.Class | |||||
| ShowParenthesis (MonoPair SelectorList) SelectorList Source # | |||||
Defined in CssParser.Rule.Show Methods left :: forall pp tt -> (pp ~ MonoPair SelectorList, tt ~ SelectorList) => LText Source # right :: forall pp tt -> (pp ~ MonoPair SelectorList, tt ~ SelectorList) => LText Source # | |||||
| ShowSpaceBetween (MonoPair SelectorList) SelectorList Source # | |||||
Defined in CssParser.Rule.Show Methods cssSpace :: forall aa bb -> (aa ~ MonoPair SelectorList, bb ~ SelectorList) => LText Source # | |||||
| type Rep1 NonEmpty # | Since: base-4.6.0.0 | ||||
Defined in GHC.Internal.Generics type Rep1 NonEmpty = D1 ('MetaData "NonEmpty" "GHC.Internal.Base" "ghc-internal" 'False) (C1 ('MetaCons ":|" ('InfixI 'RightAssociative 5) 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) Par1 :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec1 []))) | |||||
| type Rep (NonEmpty a) # | Since: base-4.6.0.0 | ||||
Defined in GHC.Internal.Generics type Rep (NonEmpty a) = D1 ('MetaData "NonEmpty" "GHC.Internal.Base" "ghc-internal" 'False) (C1 ('MetaCons ":|" ('InfixI 'RightAssociative 5) 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a]))) | |||||
| type Item (NonEmpty a) # | |||||
Defined in GHC.Internal.IsList | |||||