| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Mikan.Syntax.Scope.Errors
Documentation
data IgnoredRecordDeclaration Source #
Instances
data PatternSynonymError Source #
Constructors
| AsPatternInPatternSynonym | |
| DotPatternInPatternSynonym | |
| BadArgumentsToPatternSynonym AmbiguousQName | |
| TooFewArgumentsToPatternSynonym AmbiguousQName | |
| CannotResolveAmbiguousPatternSynonym (List1 (QName, PatternSynDefn)) | |
| IllegalInstanceVariableInPatternSynonym Name | This variable is bound in the lhs of the pattern synonym in instance position, but not on the rhs. This is forbidden because expansion of pattern synonyms would not be faithful to availability of instances in instance search. |
| PatternSynonymArgumentShadows ConstructorOrPatternSynonym Name (List1 AbstractName) | A variable to be bound in the pattern synonym resolved on the rhs as name of a constructor or a pattern synonym. The resolvents are given in the list. |
| UnusedVariableInPatternSynonym Name | This variable is only bound on the lhs of the pattern synonym, not on the rhs. |
| WildcardInPatternSynonym Name | The given name is a |
| UnboundVariablesInPatternSynonym (List1 Name) | These variables are only bound on the rhs of the pattern synonym, not on the lhs. |
Instances
| Diagnostic PatternSynonymError Source # | |||||
Defined in Mikan.Syntax.Scope.Errors | |||||
| PrettyTCM PatternSynonymError Source # | |||||
Defined in Mikan.Syntax.Scope.Errors Methods prettyTCM :: MonadPretty m => PatternSynonymError -> m Doc Source # | |||||
| NFData PatternSynonymError Source # | |||||
Defined in Mikan.Syntax.Scope.Errors Methods rnf :: PatternSynonymError -> () # | |||||
| Generic PatternSynonymError Source # | |||||
Defined in Mikan.Syntax.Scope.Errors Associated Types
Methods from :: PatternSynonymError -> Rep PatternSynonymError x # to :: Rep PatternSynonymError x -> PatternSynonymError # | |||||
| Show PatternSynonymError Source # | |||||
Defined in Mikan.Syntax.Scope.Errors Methods showsPrec :: Int -> PatternSynonymError -> ShowS # show :: PatternSynonymError -> String # showList :: [PatternSynonymError] -> ShowS # | |||||
| type Rep PatternSynonymError Source # | |||||
Defined in Mikan.Syntax.Scope.Errors type Rep PatternSynonymError = D1 ('MetaData "PatternSynonymError" "Mikan.Syntax.Scope.Errors" "Mikan-2.9.0-D5omT6fIG9r7kR9vN7OpU6" 'False) (((C1 ('MetaCons "AsPatternInPatternSynonym" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DotPatternInPatternSynonym" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BadArgumentsToPatternSynonym" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AmbiguousQName)) :+: (C1 ('MetaCons "TooFewArgumentsToPatternSynonym" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AmbiguousQName)) :+: C1 ('MetaCons "CannotResolveAmbiguousPatternSynonym" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (List1 (QName, PatternSynDefn))))))) :+: ((C1 ('MetaCons "IllegalInstanceVariableInPatternSynonym" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :+: C1 ('MetaCons "PatternSynonymArgumentShadows" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConstructorOrPatternSynonym) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (List1 AbstractName))))) :+: (C1 ('MetaCons "UnusedVariableInPatternSynonym" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :+: (C1 ('MetaCons "WildcardInPatternSynonym" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :+: C1 ('MetaCons "UnboundVariablesInPatternSynonym" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (List1 Name))))))) | |||||
data DisplayPragmaWarning Source #
Constructors
| DisplayPragmaInParametrisedModule | References to module parameters in DISPLAY pragmas are not supported. |
| UnusedVariablesInDisplayPragma (List1 Name) | The given names are bound in the lhs of the display pragma but not used on the rhs. This can indicate a user misunderstanding of display pragmas. |
Instances
| Diagnostic DisplayPragmaWarning Source # | |||||
Defined in Mikan.Syntax.Scope.Errors | |||||
| PrettyTCM DisplayPragmaWarning Source # | |||||
Defined in Mikan.Syntax.Scope.Errors Methods prettyTCM :: MonadPretty m => DisplayPragmaWarning -> m Doc Source # | |||||
| NFData DisplayPragmaWarning Source # | |||||
Defined in Mikan.Syntax.Scope.Errors Methods rnf :: DisplayPragmaWarning -> () # | |||||
| Generic DisplayPragmaWarning Source # | |||||
Defined in Mikan.Syntax.Scope.Errors Associated Types
Methods from :: DisplayPragmaWarning -> Rep DisplayPragmaWarning x # to :: Rep DisplayPragmaWarning x -> DisplayPragmaWarning # | |||||
| Show DisplayPragmaWarning Source # | |||||
Defined in Mikan.Syntax.Scope.Errors Methods showsPrec :: Int -> DisplayPragmaWarning -> ShowS # show :: DisplayPragmaWarning -> String # showList :: [DisplayPragmaWarning] -> ShowS # | |||||
| type Rep DisplayPragmaWarning Source # | |||||
Defined in Mikan.Syntax.Scope.Errors type Rep DisplayPragmaWarning = D1 ('MetaData "DisplayPragmaWarning" "Mikan.Syntax.Scope.Errors" "Mikan-2.9.0-D5omT6fIG9r7kR9vN7OpU6" 'False) (C1 ('MetaCons "DisplayPragmaInParametrisedModule" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnusedVariablesInDisplayPragma" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (List1 Name)))) | |||||