1-----------------------------------------------------------------------------
3-- Module : Language.PureScript.Values
4-- Copyright : (c) Phil Freeman 2013
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
13-----------------------------------------------------------------------------
15{-# LANGUAGE DeriveDataTypeable #-}
17module Language.PureScript.Values where
19import Language.PureScript.Types
20import Language.PureScript.Names
30 | Positive deriving (Show, Eq, Data, Typeable)
43 | GreaterThanOrEqualTo
52 | Concat deriving (Show, Eq, Data, Typeable)
55 = NumericLiteral (Either Integer Double)
56 | StringLiteral String
58 | Unary UnaryOperator Value
59 | Binary BinaryOperator Value Value
60 | BinaryNoParens (Qualified Ident) Value Value
62 | ArrayLiteral [Value]
64 | ObjectLiteral [(String, Value)]
65 | Accessor String Value
66 | ObjectUpdate Value [(String, Value)]
69 | Var (Qualified Ident)
70 | IfThenElse Value Value Value
72 | Constructor (Qualified ProperName)
73 | Case [Value] [([Binder], Maybe Guard, Value)]
74 | TypedValue Bool Value Type
75 | Do [DoNotationElement]
76 | TypeClassDictionary (Qualified ProperName, Type) [TypeClassDictionaryInScope] deriving (Show, Data, Typeable)
78data TypeClassDictionaryType
80 | TCDAlias (Qualified Ident) deriving (Show, Eq, Data, Typeable)
82data TypeClassDictionaryInScope
83 = TypeClassDictionaryInScope { tcdName :: Qualified Ident
84 , tcdClassName :: Qualified ProperName
85 , tcdInstanceType :: Type
86 , tcdDependencies :: Maybe [(Qualified ProperName, Type)]
87 , tcdType :: TypeClassDictionaryType
88 } deriving (Show, Data, Typeable)
91 = DoNotationValue Value
92 | DoNotationBind Binder Value
93 | DoNotationLet Binder Value deriving (Show, Data, Typeable)
96 = VariableIntroduction Ident Value
97 | Assignment Ident Value
98 | While Value [Statement]
99 | For Ident Value Value [Statement]
101 | Return Value deriving (Show, Data, Typeable)
103data IfStatement = IfStatement Value [Statement] (Maybe ElseStatement) deriving (Show, Data, Typeable)
107 | ElseIf IfStatement deriving (Show, Data, Typeable)
112 | StringBinder String
113 | NumberBinder (Either Integer Double)
115 | NullaryBinder (Qualified ProperName)
116 | UnaryBinder (Qualified ProperName) Binder
117 | ObjectBinder [(String, Binder)]
118 | ArrayBinder [Binder]
119 | ConsBinder Binder Binder
120 | NamedBinder Ident Binder deriving (Show, Data, Typeable)
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