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 TypeClassDictionaryInScope
79 = TypeClassDictionaryInScope { tcdName :: Ident
80 , tcdClassName :: Qualified ProperName
81 , tcdInstanceType :: Type
82 , tcdDependencies :: Maybe [(Qualified ProperName, Type)]
83 } deriving (Show, Data, Typeable)
86 = DoNotationValue Value
87 | DoNotationBind Binder Value
88 | DoNotationLet Binder Value deriving (Show, Data, Typeable)
91 = VariableIntroduction Ident Value
92 | Assignment Ident Value
93 | While Value [Statement]
94 | For Ident Value Value [Statement]
96 | Return Value deriving (Show, Data, Typeable)
98data IfStatement = IfStatement Value [Statement] (Maybe ElseStatement) deriving (Show, Data, Typeable)
102 | ElseIf IfStatement deriving (Show, Data, Typeable)
107 | StringBinder String
108 | NumberBinder (Either Integer Double)
110 | NullaryBinder (Qualified ProperName)
111 | UnaryBinder (Qualified ProperName) Binder
112 | ObjectBinder [(String, Binder)]
113 | ArrayBinder [Binder]
114 | ConsBinder Binder Binder
115 | 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