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 Value Type
75 | Do Value [DoNotationElement]
76 | TypeClassDictionary (Qualified ProperName, Type) [(Ident, [(Qualified ProperName, Type)], Qualified ProperName, Type)] deriving (Show, Data, Typeable)
79 = DoNotationValue Value
80 | DoNotationBind Binder Value
81 | DoNotationLet Binder Value
82 | DoNotationReturn Value deriving (Show, Data, Typeable)
85 = VariableIntroduction Ident Value
86 | Assignment Ident Value
87 | While Value [Statement]
88 | For Ident Value Value [Statement]
90 | Return Value deriving (Show, Data, Typeable)
92data IfStatement = IfStatement Value [Statement] (Maybe ElseStatement) deriving (Show, Data, Typeable)
96 | ElseIf IfStatement deriving (Show, Data, Typeable)
101 | StringBinder String
102 | NumberBinder (Either Integer Double)
104 | NullaryBinder (Qualified ProperName)
105 | UnaryBinder (Qualified ProperName) Binder
106 | ObjectBinder [(String, Binder)]
107 | ArrayBinder [Binder]
108 | ConsBinder Binder Binder
109 | 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