Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Types.Pragma
Documentation
data CodeVisibility Source #
Constructors
ModuleOnly | |
TestsOnly | |
FromDependency |
Instances
Eq CodeVisibility Source # | |
Defined in Types.Pragma Methods (==) :: CodeVisibility -> CodeVisibility -> Bool # (/=) :: CodeVisibility -> CodeVisibility -> Bool # | |
Ord CodeVisibility Source # | |
Defined in Types.Pragma Methods compare :: CodeVisibility -> CodeVisibility -> Ordering # (<) :: CodeVisibility -> CodeVisibility -> Bool # (<=) :: CodeVisibility -> CodeVisibility -> Bool # (>) :: CodeVisibility -> CodeVisibility -> Bool # (>=) :: CodeVisibility -> CodeVisibility -> Bool # max :: CodeVisibility -> CodeVisibility -> CodeVisibility # min :: CodeVisibility -> CodeVisibility -> CodeVisibility # | |
Show CodeVisibility Source # | |
Defined in Types.Pragma Methods showsPrec :: Int -> CodeVisibility -> ShowS # show :: CodeVisibility -> String # showList :: [CodeVisibility] -> ShowS # |
Instances
Eq MacroName Source # | |
Ord MacroName Source # | |
Show MacroName Source # | |
ParseFromSource MacroName Source # | |
Defined in Parser.Pragma Methods sourceParser :: forall (m :: Type -> Type). CompileErrorM m => ParserE m MacroName Source # |
Constructors
PragmaVisibility | |
Fields
| |
PragmaExprLookup | |
Fields
| |
PragmaSourceContext | |
Fields
| |
PragmaTracing | |
PragmaComment | |
Constructors
NoTrace | |
TraceCreation |
data WithVisibility a Source #
Constructors
WithVisibility | |
Fields
|
Instances
Show a => Show (WithVisibility a) Source # | |
Defined in Types.Pragma Methods showsPrec :: Int -> WithVisibility a -> ShowS # show :: WithVisibility a -> String # showList :: [WithVisibility a] -> ShowS # |
getPragmaContext :: Pragma c -> [c] Source #
hasCodeVisibility :: CodeVisibility -> WithVisibility a -> Bool Source #
isExprLookup :: Pragma c -> Bool Source #
isModuleOnly :: Pragma c -> Bool Source #
isSourceContext :: Pragma c -> Bool Source #
isTestsOnly :: Pragma c -> Bool Source #
isTraceCreation :: Pragma c -> Bool Source #
mapCodeVisibility :: (a -> b) -> WithVisibility a -> WithVisibility b Source #
updateCodeVisibility :: (Set CodeVisibility -> Set CodeVisibility) -> WithVisibility a -> WithVisibility a Source #