1module Language.PureScript.TypeClassDictionaries where
3import Language.PureScript.Names
4import Language.PureScript.Types
7-- Data representing a type class dictionary which is in scope
9data TypeClassDictionaryInScope
10 = TypeClassDictionaryInScope {
11 -- | The identifier with which the dictionary can be accessed at runtime
12 tcdName :: Qualified Ident
13 -- | How to obtain this instance via superclass relationships
14 , tcdPath :: [(Qualified (ProperName 'ClassName), Integer)]
15 -- | The name of the type class to which this type class instance applies
16 , tcdClassName :: Qualified (ProperName 'ClassName)
17 -- | The types to which this type class instance applies
18 , tcdInstanceTypes :: [Type]
19 -- | Type class dependencies which must be satisfied to construct this dictionary
20 , tcdDependencies :: Maybe [Constraint]
25-- A simplified representation of expressions which are used to represent type
26-- class dictionaries at runtime, which can be compared for equality
30 -- A dictionary which is brought into scope by a local constraint
32 = LocalDictionaryValue (Qualified Ident)
34 -- A dictionary which is brought into scope by an instance declaration
36 | GlobalDictionaryValue (Qualified Ident)
38 -- A dictionary which depends on other dictionaries
40 | DependentDictionaryValue (Qualified Ident) [DictionaryValue]
42 -- A subclass dictionary
44 | SubclassDictionaryValue DictionaryValue (Qualified (ProperName 'ClassName)) Integer
45 deriving (Show, Read, Ord, Eq)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list