Source location: file and line/col information. This is half of a SourceSpan.
Modulepersistent-2.18.1.0Haskell2010
Database.Persist.Quasi.Internal.ModelParser
- 10 types
- 13 values
- Packagepersistent-2.18.1.0
- Exports23
- LanguageHaskell2010
- LicenceMIT
- SourceModelParser.hs
An attribute of an entity field definition or a directive.
Constructors
Assignment Text TextParenthetical TextPText TextQuotation TextQuoted field attributes are deprecated since 2.17.1.0.
Converts an attribute into a Text representation for second-stage parsing or presentation to the user
Constructors
DirectivedirectiveDocCommentBlock :: Maybe DocCommentBlockdirectiveName :: DirectiveNamedirectiveAttributes :: [Attribute]directivePos :: SourcePos
Converts a directive into a Text representation for second-stage parsing or presentation to the user
Constructors
EntityFieldentityFieldDocCommentBlock :: Maybe DocCommentBlockentityFieldStrictness :: Maybe FieldStrictnessentityFieldName :: FieldNameentityFieldType :: TypeExprentityFieldAttributes :: [Attribute]entityFieldPos :: SourcePos
Instances1Show
Show EntityFieldDefined in persistent-2.18.1.0 · Database.Persist.Quasi.Internal.ModelParser
Constructors
ParsedEntityDefparsedEntityDefComments :: [Text]parsedEntityDefEntityName :: EntityNameHSparsedEntityDefIsSum :: BoolparsedEntityDefEntityAttributes :: [Attribute]parsedEntityDefFields :: [(EntityField, Maybe Text)]parsedEntityDefDirectives :: [(Directive, Maybe Text)]parsedEntityDefExtras :: Map Text [ExtraLine]parsedEntityDefSpan :: Maybe SourceSpan
Instances1Show
Show ParsedEntityDefDefined in persistent-2.18.1.0 · Database.Persist.Quasi.Internal.ModelParser
Represents an entity member as a list of EntityFields
Instances3Eq, Ord, Show
Eq ParserWarningDefined in persistent-2.18.1.0 · Database.Persist.Quasi.PersistSettings.InternalOrd ParserWarningDefined in persistent-2.18.1.0 · Database.Persist.Quasi.PersistSettings.InternalShow ParserWarningDefined in persistent-2.18.1.0 · Database.Persist.Quasi.PersistSettings.Internal
Uses errorBundlePretty to render a parser warning.
Result of parsing a single source text.
Cumulative result of parsing multiple source texts.
Renders a list of EntityParseErrors as a String using errorBundlePretty, separated by line breaks. @since 2.16.0.0
Run a parser using provided PersistSettings and ExtraState @since 2.16.0.0
Instances2Eq, Show
Eq ParserErrorLevelDefined in persistent-2.18.1.0 · Database.Persist.Quasi.PersistSettings.InternalShow ParserErrorLevelDefined in persistent-2.18.1.0 · Database.Persist.Quasi.PersistSettings.Internal