1-----------------------------------------------------------------------------
3-- Module : PureScript.Values
4-- Copyright : (c) Phil Freeman 2013
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
13-----------------------------------------------------------------------------
15{-# LANGUAGE DeriveDataTypeable #-}
17module PureScript.Values where
19import PureScript.Types
20import PureScript.Names
27 | BitwiseNot deriving (Show, Eq, Data, Typeable)
40 | GreaterThanOrEqualTo
49 | Concat deriving (Show, Eq, Data, Typeable)
52 = NumericLiteral (Either Integer Double)
53 | StringLiteral String
55 | Unary UnaryOperator Value
56 | Binary BinaryOperator Value Value
57 | ArrayLiteral [Value]
59 | ObjectLiteral [(String, Value)]
60 | Accessor String Value
64 | IfThenElse Value Value Value
67 | Case Value [(Binder, Value)]
68 | TypedValue Value PolyType deriving (Show, Data, Typeable)
71 = VariableIntroduction Ident Value
72 | Assignment AssignmentTarget Value
73 | While Value [Statement]
74 | For Ident Value Value [Statement]
75 | ForEach Ident Value [Statement]
77 | Return Value deriving (Show, Data, Typeable)
79data IfStatement = IfStatement Value [Statement] (Maybe ElseStatement) deriving (Show, Data, Typeable)
83 | ElseIf IfStatement deriving (Show, Data, Typeable)
89 | NumberBinder (Either Integer Double)
91 | NullaryBinder String
92 | UnaryBinder String Binder
93 | ObjectBinder [(String, Binder)]
94 | ArrayBinder [Binder] (Maybe Binder)
95 | NamedBinder Ident Binder
96 | GuardedBinder Value Binder deriving (Show, Data, Typeable)
99 = AssignVariable Ident
100 | AssignObjectProperty String AssignmentTarget
101 | AssignArrayIndex Value AssignmentTarget 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